aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-01-14 15:05:57 +0100
committerplegall <plg@piwigo.org>2016-01-14 15:05:57 +0100
commit5c57d8aa0f475aa8e20c912283ed650450c3e661 (patch)
tree602ae6761dcd2b61d6f92cbd04d1537e9caba6e5
parentc789347c514e89b32c9ceefa0a9c9ac819cbc677 (diff)
adapt release creation script to Git and multiple repositories for plugins2.8.0RC1
-rwxr-xr-xtools/pwg_rel_create.sh32
1 files changed, 25 insertions, 7 deletions
diff --git a/tools/pwg_rel_create.sh b/tools/pwg_rel_create.sh
index 57a9f1cfa..f891d55e1 100755
--- a/tools/pwg_rel_create.sh
+++ b/tools/pwg_rel_create.sh
@@ -7,16 +7,17 @@
# | project : Piwigo |
# +--------------------------------------------------------------------------+
-if [ $# -lt 2 ]
+if [ $# -lt 1 ]
then
echo
- echo 'usage : '$(basename $0)' <tag> <version number>'
+ echo 'usage : '$(basename $0)' <version number> [<sha>]'
echo
exit 1
fi
-tag=$1
-version=$2
+version=$1
+
+sha=$2
name=piwigo-$version
@@ -29,19 +30,36 @@ fi
mkdir $version
cd $version
-svn export http://piwigo.org/svn/tags/$tag piwigo
+git clone https://github.com/Piwigo/Piwigo.git piwigo
+cd piwigo
+if [ $# -eq 2 ]
+then
+ git checkout $2
+fi
-mkdir piwigo/_data
-touch piwigo/_data/dummy.txt
+cd plugins
+git clone https://github.com/Piwigo/TakeATour.git
+git clone https://github.com/Piwigo/AdminTools.git
+git clone https://github.com/Piwigo/LocalFilesEditor.git
+git clone https://github.com/Piwigo/LanguageSwitch.git
+
+rm -rf /tmp/$version/piwigo/.git
+rm -rf /tmp/$version/piwigo/plugins/*/.git
+
+cd /tmp/$version
mkdir piwigo/upload
+mkdir piwigo/_data
+touch piwigo/_data/dummy.txt
zip -r $name-nochmod.zip piwigo
chmod -R a+w piwigo/local
chmod a+w piwigo/_data
chmod a+w piwigo/upload
+chmod a+w piwigo/plugins
+chmod a+w piwigo/themes
zip -r $name.zip piwigo