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