Last change
on this file since 4344 was
3658,
checked in by plg, 15 years ago
|
update Subversion repository location on release creation script
|
-
Property svn:eol-style set to
LF
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
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 | |
---|
[3134] | 21 | name=piwigo-$version |
---|
[2176] | 22 | |
---|
| 23 | cd /tmp |
---|
| 24 | if [ -e $name ] |
---|
| 25 | then |
---|
| 26 | rm -rf $name |
---|
| 27 | fi |
---|
| 28 | |
---|
[2197] | 29 | if [ -e $version ] |
---|
| 30 | then |
---|
| 31 | rm -rf $version |
---|
| 32 | fi |
---|
| 33 | mkdir $version |
---|
| 34 | |
---|
| 35 | # cvs export -r $tag -d $version phpwebgallery |
---|
[3658] | 36 | svn export http://piwigo.org/svn/tags/$tag $name |
---|
[2176] | 37 | # creating mysql.inc.php empty and writeable |
---|
| 38 | touch $name/include/mysql.inc.php |
---|
| 39 | chmod a+w $name/include/mysql.inc.php |
---|
| 40 | |
---|
| 41 | # find $name -name "*.php" \ |
---|
| 42 | # | xargs grep -l 'branch 1.7' \ |
---|
| 43 | # | xargs perl -pi -e "s/branch 1.7/${version}/g" |
---|
| 44 | |
---|
[2200] | 45 | cd /tmp |
---|
[3134] | 46 | for ext in zip # tar.gz tar.bz2 |
---|
[2176] | 47 | do |
---|
[2200] | 48 | file=$version/$name.$ext |
---|
[2176] | 49 | if [ -f $file ] |
---|
| 50 | then |
---|
| 51 | rm $name |
---|
| 52 | fi |
---|
| 53 | done |
---|
| 54 | |
---|
[2197] | 55 | |
---|
[2200] | 56 | zip -r $version/$name.zip $name |
---|
[3134] | 57 | # tar -czf $version/$name.tar.gz $name |
---|
| 58 | # tar -cjf $version/$name.tar.bz2 $name |
---|
[2200] | 59 | |
---|
| 60 | cd /tmp/$version |
---|
[3134] | 61 | # md5sum p* >MD5SUMS |
---|
Note: See
TracBrowser
for help on using the repository browser.