2007-11-30 00:03:19 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# +--------------------------------------------------------------------------+
|
|
|
|
# | pwg_rel_create.sh |
|
|
|
|
# +--------------------------------------------------------------------------+
|
|
|
|
# | author : Pierrick LE GALL <http://le-gall.net/pierrick> |
|
2008-05-15 20:43:33 +02:00
|
|
|
# | project : Piwigo |
|
2007-11-30 00:03:19 +01:00
|
|
|
# +--------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
if [ $# -lt 2 ]
|
|
|
|
then
|
|
|
|
echo
|
|
|
|
echo 'usage : '$(basename $0)' <tag> <version number>'
|
|
|
|
echo
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
tag=$1
|
|
|
|
version=$2
|
|
|
|
|
2009-02-13 00:55:27 +01:00
|
|
|
name=piwigo-$version
|
2007-11-30 00:03:19 +01:00
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
|
2008-01-24 23:00:56 +01:00
|
|
|
if [ -e $version ]
|
|
|
|
then
|
|
|
|
rm -rf $version
|
|
|
|
fi
|
|
|
|
mkdir $version
|
2010-01-12 14:17:50 +01:00
|
|
|
cd $version
|
|
|
|
|
|
|
|
svn export http://piwigo.org/svn/tags/$tag piwigo
|
2008-01-24 23:00:56 +01:00
|
|
|
|
2010-10-30 00:56:45 +02:00
|
|
|
chmod -R a+w piwigo/local
|
|
|
|
|
|
|
|
mkdir piwigo/_data
|
|
|
|
chmod a+w piwigo/_data
|
|
|
|
touch piwigo/_data/dummy.txt
|
|
|
|
|
|
|
|
mkdir piwigo/upload
|
|
|
|
chmod a+w piwigo/upload
|
2007-11-30 00:03:19 +01:00
|
|
|
|
2010-01-12 14:17:50 +01:00
|
|
|
zip -r $name.zip piwigo
|
2007-11-30 00:03:19 +01:00
|
|
|
|
2010-01-12 14:17:50 +01:00
|
|
|
echo cd /tmp/$version
|