Files
Piwigo/tools/pwg_rel_create.sh
plegall 5095f26094 merge r4668 from branch 2.0 to trunk
feature 1375: remove version in Piwigo archive root directory


git-svn-id: http://piwigo.org/svn/trunk@4669 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-12 13:17:50 +00:00

41 lines
964 B
Bash
Executable File

#!/bin/bash
# +--------------------------------------------------------------------------+
# | pwg_rel_create.sh |
# +--------------------------------------------------------------------------+
# | author : Pierrick LE GALL <http://le-gall.net/pierrick> |
# | project : Piwigo |
# +--------------------------------------------------------------------------+
if [ $# -lt 2 ]
then
echo
echo 'usage : '$(basename $0)' <tag> <version number>'
echo
exit 1
fi
tag=$1
version=$2
name=piwigo-$version
cd /tmp
if [ -e $version ]
then
rm -rf $version
fi
mkdir $version
cd $version
svn export http://piwigo.org/svn/tags/$tag piwigo
# creating config_database.inc.php empty and writeable
touch piwigo/include/config_database.inc.php
chmod a+w piwigo/include/config_database.inc.php
zip -r $name.zip piwigo
echo cd /tmp/$version