Line | |
---|
1 | #!/bin/sh -e |
---|
2 | |
---|
3 | VERSION=$1 |
---|
4 | |
---|
5 | if [ -z "$VERSION" ]; then |
---|
6 | echo "No version given" |
---|
7 | exit 1 |
---|
8 | fi |
---|
9 | |
---|
10 | svn update |
---|
11 | |
---|
12 | perl -pi -e "s/our \\\$VERSION =.*/our \\\$VERSION = '$VERSION';/" LATMOS-Accounts/lib/LATMOS/Accounts.pm |
---|
13 | perl -pi -e "s/our \\\$VERSION =.*/our \\\$VERSION = '$VERSION';/" LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web.pm |
---|
14 | |
---|
15 | perl -pi -e "s/^XXX/$VERSION/m" LATMOS-Accounts/Changes |
---|
16 | perl -pi -e "s/^XXX/$VERSION/m" LATMOS-Accounts-Web/Changes |
---|
17 | |
---|
18 | find -name "*.tar.gz" -o -name "*.rpm" | xargs rm |
---|
19 | |
---|
20 | ( |
---|
21 | cd LATMOS-Accounts |
---|
22 | perl Makefile.PL |
---|
23 | make rpm |
---|
24 | ) |
---|
25 | ( |
---|
26 | cd LATMOS-Accounts-Web/; |
---|
27 | perl Makefile.PL; |
---|
28 | make rpm |
---|
29 | ) |
---|
30 | |
---|
31 | ( |
---|
32 | cd .. |
---|
33 | svn cp trunk tags/$VERSION |
---|
34 | ) |
---|
35 | |
---|
36 | rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@yuko.aero.jussieu.fr:/tmp |
---|
37 | rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@la-template.latmos.upmc.fr:/tmp |
---|
38 | rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm \ |
---|
39 | ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm \ |
---|
40 | ./LATMOS-Accounts/*.src.rpm \ |
---|
41 | ./LATMOS-Accounts-Web/*.src.rpm \ |
---|
42 | nanardon@forge.ipsl.jussieu.fr:/ipsl/forge/projets/link-accounts/web/release/${VERSION}/ |
---|
43 | ssh -t root@la-template.latmos.upmc.fr urpmi /tmp/*.noarch.rpm |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.