piwigo/tools/pwg_rel_create.sh
plegall 2a679322c5 merge r13971 from branch 2.3 to trunk
add package version -nochmod


git-svn-id: http://piwigo.org/svn/trunk@13972 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-04-07 22:28:19 +00:00

48 lines
992 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
mkdir piwigo/_data
touch piwigo/_data/dummy.txt
mkdir piwigo/upload
zip -r $name-nochmod.zip piwigo
chmod -R a+w piwigo/local
chmod a+w piwigo/_data
chmod a+w piwigo/upload
zip -r $name.zip piwigo
echo cd /tmp/$version