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-03-21 12:32:49 +00:00
|
|
|
# creating database.inc.php empty and writeable
|
|
|
|
touch piwigo/local/config/database.inc.php
|
|
|
|
chmod a+w piwigo/local/config/database.inc.php
|
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
|