1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
piwigo_ynh/sources/tools/pwg_rel_create.sh

49 lines
992 B
Bash
Raw Normal View History

2014-07-06 13:21:10 +02:00
#!/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