From 85242556f0fa2339e59547cb7537e0c744898fae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 7 Sep 2009 22:11:17 +0000 Subject: [PATCH] package.sh rewritten --- package.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/package.sh b/package.sh index efb233317..c0954dd8d 100755 --- a/package.sh +++ b/package.sh @@ -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." -- 2.39.5