aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-01-12 13:04:16 +0000
committerplegall <plg@piwigo.org>2010-01-12 13:04:16 +0000
commit3903c1778361976ce77c659940ca2c80eac2227a (patch)
tree23f0e07246dfcc57d6fd54cb1142dc5761777e5e /tools
parent423b8032bed7e95cbc49b5b3b3d51a90131140aa (diff)
feature 1375: remove version in Piwigo archive root directory
git-svn-id: http://piwigo.org/svn/branches/2.0@4668 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pwg_rel_create.sh35
1 files changed, 7 insertions, 28 deletions
diff --git a/tools/pwg_rel_create.sh b/tools/pwg_rel_create.sh
index 0dadbe759..ae776347e 100755
--- a/tools/pwg_rel_create.sh
+++ b/tools/pwg_rel_create.sh
@@ -21,41 +21,20 @@ version=$2
name=piwigo-$version
cd /tmp
-if [ -e $name ]
-then
- rm -rf $name
-fi
if [ -e $version ]
then
rm -rf $version
fi
mkdir $version
+cd $version
+
+svn export http://piwigo.org/svn/tags/$tag piwigo
-# cvs export -r $tag -d $version phpwebgallery
-svn export http://piwigo.org/svn/tags/$tag $name
# creating mysql.inc.php empty and writeable
-touch $name/include/mysql.inc.php
-chmod a+w $name/include/mysql.inc.php
+touch piwigo/include/mysql.inc.php
+chmod a+w piwigo/include/mysql.inc.php
-# find $name -name "*.php" \
-# | xargs grep -l 'branch 1.7' \
-# | xargs perl -pi -e "s/branch 1.7/${version}/g"
+zip -r $name.zip piwigo
-cd /tmp
-for ext in zip # tar.gz tar.bz2
-do
- file=$version/$name.$ext
- if [ -f $file ]
- then
- rm $name
- fi
-done
-
-
-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
+echo cd /tmp/$version