source: branches/2.0/tools/pwg_rel_create.sh @ 9464

Last change on this file since 9464 was 4668, checked in by plg, 14 years ago

feature 1375: remove version in Piwigo archive root directory

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 934 bytes
RevLine 
[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
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
[3134]21name=piwigo-$version
[2176]22
23cd /tmp
24
[2197]25if [ -e $version ]
26then
27  rm -rf $version
28fi
29mkdir $version
[4668]30cd $version
[2197]31
[4668]32svn export http://piwigo.org/svn/tags/$tag piwigo
33
[2176]34# creating mysql.inc.php empty and writeable
[4668]35touch piwigo/include/mysql.inc.php
36chmod a+w piwigo/include/mysql.inc.php
[2176]37
[4668]38zip -r $name.zip piwigo
[2176]39
[4668]40echo cd /tmp/$version
Note: See TracBrowser for help on using the repository browser.