aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormathiasm <mathiasm@piwigo.org>2008-01-27 21:01:32 +0000
committermathiasm <mathiasm@piwigo.org>2008-01-27 21:01:32 +0000
commitd5015da6ec45bbb08732b28dfbfe9e089504c08d (patch)
treee7b4e4bb57e2fb2f4b671cf2c6ed9b41e11bf27f
parent48220bdf7bf9a244cc5c8eef8c88dc4cda3c2c80 (diff)
update release script to avoid the ../ warning in zip
added md5sum in the script git-svn-id: http://piwigo.org/svn/trunk@2200 68402e56-0260-453c-a942-63ccdbb3a9ee
-rwxr-xr-xtools/pwg_rel_create.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/pwg_rel_create.sh b/tools/pwg_rel_create.sh
index 7fd1acc2c..7db54a236 100755
--- a/tools/pwg_rel_create.sh
+++ b/tools/pwg_rel_create.sh
@@ -42,17 +42,20 @@ chmod a+w $name/include/mysql.inc.php
# | xargs grep -l 'branch 1.7' \
# | xargs perl -pi -e "s/branch 1.7/${version}/g"
-cd /tmp/$version
+cd /tmp
for ext in zip tar.gz tar.bz2
do
- file=$name.$ext
+ file=$version/$name.$ext
if [ -f $file ]
then
rm $name
fi
done
-zip -r $name.zip ../$name
-tar -czf $name.tar.gz ../$name
-tar -cjf $name.tar.bz2 ../$name
+zip -r $version/$name.zip $name
+tar -czf $version/$name.tar.gz $name
+tar -cjf $version/$name.tar.bz2 $name
+
+cd /tmp/$version
+md5sum p* >MD5SUMS