Last change
on this file since 11493 was
7492,
checked in by plg, 14 years ago
|
merge r7491 from branch 2.1 to trunk
new settings used to create Piwigo archives
|
-
Property svn:eol-style set to
LF
-
Property svn:executable set to
*
|
File size:
958 bytes
|
Rev | Line | |
---|
[2176] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | # +--------------------------------------------------------------------------+ |
---|
| 4 | # | pwg_rel_create.sh | |
---|
| 5 | # +--------------------------------------------------------------------------+ |
---|
| 6 | # | author : Pierrick LE GALL <http://le-gall.net/pierrick> | |
---|
[2342] | 7 | # | project : Piwigo | |
---|
[2176] | 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 | |
---|
[3135] | 21 | name=piwigo-$version |
---|
[2176] | 22 | |
---|
| 23 | cd /tmp |
---|
| 24 | |
---|
[2197] | 25 | if [ -e $version ] |
---|
| 26 | then |
---|
| 27 | rm -rf $version |
---|
| 28 | fi |
---|
| 29 | mkdir $version |
---|
[4669] | 30 | cd $version |
---|
[2197] | 31 | |
---|
[4669] | 32 | svn export http://piwigo.org/svn/tags/$tag piwigo |
---|
| 33 | |
---|
[7492] | 34 | chmod -R a+w piwigo/local |
---|
[2176] | 35 | |
---|
[7492] | 36 | mkdir piwigo/_data |
---|
| 37 | chmod a+w piwigo/_data |
---|
| 38 | touch piwigo/_data/dummy.txt |
---|
| 39 | |
---|
| 40 | mkdir piwigo/upload |
---|
| 41 | chmod a+w piwigo/upload |
---|
| 42 | |
---|
[4669] | 43 | zip -r $name.zip piwigo |
---|
[2176] | 44 | |
---|
[4669] | 45 | echo cd /tmp/$version |
---|
Note: See
TracBrowser
for help on using the repository browser.