From: Roland Häder Date: Mon, 7 Sep 2009 22:11:02 +0000 (+0000) Subject: package.sh rewritten X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ef130a7744c6e091edc35154a3a62b69720ba54;p=admin.git package.sh rewritten --- diff --git a/package.sh b/package.sh index c1dccb5..7575061 100755 --- a/package.sh +++ b/package.sh @@ -1,18 +1,14 @@ #!/bin/sh -# Prefix of archive -PREFIX="admin_dev" + +NAME=admin_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."