Mods-for-HESK-Netsyms/ci/build_zip.sh

16 lines
343 B
Bash
Raw Normal View History

2017-06-25 16:10:09 -04:00
#!/bin/bash
cd ../
2017-06-25 21:03:12 -04:00
mkdir $VERSION_NUMBER
TARGETDIR=$VERSION_NUMBER;for file in *;do test "$file" != "$TARGETDIR" && cp -r "$file" "$TARGETDIR/";done
2017-06-25 16:10:09 -04:00
# Remove files that we don't want to bundle
2017-06-25 21:03:12 -04:00
cd $VERSION_NUMBER
2017-06-25 16:10:09 -04:00
rm -rf ci
rm -rf .git
rm apidoc.json
rm CONTRIBUTING.md
cd ../
2017-06-25 21:13:31 -04:00
zip -r $VERSION_NUMBER.zip $VERSION_NUMBER
2017-06-25 21:03:12 -04:00
rm -rf $VERSION_NUMBER