source: branches/2.1/tools/pwg_rel_create.sh @ 8374

Last change on this file since 8374 was 7491, checked in by plg, 14 years ago

new settings used to create Piwigo archives

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 958 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
[3135]21name=piwigo-$version
[2176]22
23cd /tmp
24
[2197]25if [ -e $version ]
26then
27  rm -rf $version
28fi
29mkdir $version
[4669]30cd $version
[2197]31
[4669]32svn export http://piwigo.org/svn/tags/$tag piwigo
33
[7491]34chmod -R a+w piwigo/local
[2176]35
[7491]36mkdir piwigo/_data
37chmod a+w piwigo/_data
38touch piwigo/_data/dummy.txt
39
40mkdir piwigo/upload
41chmod a+w piwigo/upload
42
[4669]43zip -r $name.zip piwigo
[2176]44
[4669]45echo cd /tmp/$version
Note: See TracBrowser for help on using the repository browser.