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

index 8487e7b68638ba5c7446c5aee7a0a18c35c60871..0c8dddb3cf381ba207c59c36431bc1aedb4c3c4b 100644 (file)
@@ -1,16 +1,14 @@
 #!/bin/sh
 
+NAME=mailer_dev_`date +%Y%m%d_%H%M%S`.zip
+
 sh ./clear-cache.sh
 
 echo -n "$0: Packaging... "
-zip -9 mxchange-0.3.0_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 mxchange-0.3.0_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 mxchange-0.3.0_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 mxchange-0.3.0_dev.zip mxchange-0.3.0_dev_`date +%Y%m%d_%H%M%S`.zip
-
 echo "$0: All done."