]> git.mxchange.org Git - hub.git/blobdiff - package.sh
Added missing you-private-key-hash
[hub.git] / package.sh
index efb23331713544e215418f5e8e6285879e47f8bc..c0954dd8de4e82e3cc6a4da7e628a7c7aaf98315 100755 (executable)
@@ -1,16 +1,14 @@
 #!/bin/sh
 
+NAME=hub_dev_`date +%Y%m%d_%H%M%S`.zip
+
 sh ./clear-cache.sh
 
 echo -n "$0: Packaging... "
-zip -9 hub_dev.zip docs/* Doxyfile *.php *.sh > /dev/null 2>&1
+zip -9 $NAME docs/* Doxyfile *.php *.sh > /dev/null 2>&1
 echo -n "."
-zip -9r hub_dev.zip application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1
+zip -9r $NAME application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1
 echo -n "."
-zip -d hub_dev.zip docs/warn.log db/*/*.serialized > /dev/null 2>&1
+zip -d $NAME docs/warn.log db/*/*.serialized > /dev/null 2>&1
 echo ". done"
-
-echo "$0: Renaming..."
-mv hub_dev.zip hub_dev_`date +%Y%m%d_%H%M%S`.zip
-
 echo "$0: All done."