]> git.mxchange.org Git - install.git/commitdiff
package.sh rewritten
authorRoland Häder <roland@mxchange.org>
Mon, 7 Sep 2009 22:11:25 +0000 (22:11 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 7 Sep 2009 22:11:25 +0000 (22:11 +0000)
package.sh

index 106f2a3d57c2882439def1b3d86ee9c47a86ac9a..65f9f18ab4d2119f1b7ab18b11e4c649be3f039e 100755 (executable)
@@ -1,18 +1,14 @@
 #!/bin/sh
-# Prefix of archive
-PREFIX="install"
+
+NAME=install_dev_`date +%Y%m%d_%H%M%S`.zip
 
 sh ./clear-cache.sh
 
 echo -n "$0: Packaging... "
-zip -9 $PREFIX.zip docs/* Doxyfile *.php *.sh > /dev/null 2>&1
+zip -9 $NAME docs/* Doxyfile *.php *.sh > /dev/null 2>&1
 echo -n "."
-zip -9r $PREFIX.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 $PREFIX.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..."
-eval "mv $PREFIX.zip $PREFIX-`date +%Y%m%d_%H%M%S`.zip"
-
 echo "$0: All done."