source: trunk/tools/pwg_rel_create.sh @ 8223

Last change on this file since 8223 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
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
24
25if [ -e $version ]
26then
27  rm -rf $version
28fi
29mkdir $version
30cd $version
31
32svn export http://piwigo.org/svn/tags/$tag piwigo
33
34chmod -R a+w piwigo/local
35
36mkdir piwigo/_data
37chmod a+w piwigo/_data
38touch piwigo/_data/dummy.txt
39
40mkdir piwigo/upload
41chmod a+w piwigo/upload
42
43zip -r $name.zip piwigo
44
45echo cd /tmp/$version
Note: See TracBrowser for help on using the repository browser.