source: trunk/tools/pwg_rel_create.sh @ 3135

Last change on this file since 3135 was 3135, checked in by plg, 15 years ago

merge r3134 from branch 2.0 to trunk

new: phpwebgallery renamed piwigo

modification: pwg_rel_create.sh only creates the zip file

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.3 KB
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
10if [ $# -lt 2 ]
11then
12  echo
13  echo 'usage : '$(basename $0)' <tag> <version number>'
14  echo
15  exit 1
16fi
17
18tag=$1
19version=$2
20
21name=piwigo-$version
22
23cd /tmp
24if [ -e $name ]
25then
26  rm -rf $name
27fi
28
29if [ -e $version ]
30then
31  rm -rf $version
32fi
33mkdir $version
34
35# cvs export -r $tag -d $version phpwebgallery
36svn export http://svn.gna.org/svn/phpwebgallery/tags/$tag $name
37# creating mysql.inc.php empty and writeable
38touch $name/include/mysql.inc.php
39chmod 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
45cd /tmp
46for ext in zip # tar.gz tar.bz2
47do
48  file=$version/$name.$ext
49  if [ -f $file ]
50  then
51    rm $name
52  fi
53done
54
55
56zip -r   $version/$name.zip     $name
57# tar -czf $version/$name.tar.gz  $name
58# tar -cjf $version/$name.tar.bz2 $name
59
60cd /tmp/$version
61# md5sum p* >MD5SUMS
Note: See TracBrowser for help on using the repository browser.