Last change
on this file since 22979 was
13972,
checked in by plg, 13 years ago
|
merge r13971 from branch 2.3 to trunk
add package version -nochmod
|
-
Property svn:eol-style set to
LF
-
Property svn:executable set to
*
|
File size:
992 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # +--------------------------------------------------------------------------+ |
---|
4 | # | pwg_rel_create.sh | |
---|
5 | # +--------------------------------------------------------------------------+ |
---|
6 | # | author : Pierrick LE GALL <http://le-gall.net/pierrick> | |
---|
7 | # | project : Piwigo | |
---|
8 | # +--------------------------------------------------------------------------+ |
---|
9 | |
---|
10 | if [ $# -lt 2 ] |
---|
11 | then |
---|
12 | echo |
---|
13 | echo 'usage : '$(basename $0)' <tag> <version number>' |
---|
14 | echo |
---|
15 | exit 1 |
---|
16 | fi |
---|
17 | |
---|
18 | tag=$1 |
---|
19 | version=$2 |
---|
20 | |
---|
21 | name=piwigo-$version |
---|
22 | |
---|
23 | cd /tmp |
---|
24 | |
---|
25 | if [ -e $version ] |
---|
26 | then |
---|
27 | rm -rf $version |
---|
28 | fi |
---|
29 | mkdir $version |
---|
30 | cd $version |
---|
31 | |
---|
32 | svn export http://piwigo.org/svn/tags/$tag piwigo |
---|
33 | |
---|
34 | |
---|
35 | mkdir piwigo/_data |
---|
36 | touch piwigo/_data/dummy.txt |
---|
37 | |
---|
38 | mkdir piwigo/upload |
---|
39 | |
---|
40 | zip -r $name-nochmod.zip piwigo |
---|
41 | |
---|
42 | chmod -R a+w piwigo/local |
---|
43 | chmod a+w piwigo/_data |
---|
44 | chmod a+w piwigo/upload |
---|
45 | |
---|
46 | zip -r $name.zip piwigo |
---|
47 | |
---|
48 | echo cd /tmp/$version |
---|
Note: See
TracBrowser
for help on using the repository browser.