blob: f891d55e15312eea174cd1bbf0f3db360a464888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#!/bin/bash
# +--------------------------------------------------------------------------+
# | pwg_rel_create.sh |
# +--------------------------------------------------------------------------+
# | author : Pierrick LE GALL <http://le-gall.net/pierrick> |
# | project : Piwigo |
# +--------------------------------------------------------------------------+
if [ $# -lt 1 ]
then
echo
echo 'usage : '$(basename $0)' <version number> [<sha>]'
echo
exit 1
fi
version=$1
sha=$2
name=piwigo-$version
cd /tmp
if [ -e $version ]
then
rm -rf $version
fi
mkdir $version
cd $version
git clone https://github.com/Piwigo/Piwigo.git piwigo
cd piwigo
if [ $# -eq 2 ]
then
git checkout $2
fi
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
echo cd /tmp/$version
|