source: trunk/latmosnextversion @ 1976

Last change on this file since 1976 was 1966, checked in by nanardon, 7 years ago
  • 5.2.13
File size: 1.4 KB
Line 
1#!/bin/sh -e
2
3VERSION=$1
4
5if [ -z "$VERSION" ]; then
6   echo "No version given"
7   exit 1
8fi
9
10svn update
11
12perl -pi -e "s/our \\\$VERSION =.*/our \\\$VERSION = '$VERSION';/" LATMOS-Accounts/lib/LATMOS/Accounts.pm
13perl -pi -e "s/our \\\$VERSION =.*/our \\\$VERSION = '$VERSION';/" LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web.pm
14
15perl -pi -e "s/^XXX/$VERSION/m" LATMOS-Accounts/Changes
16perl -pi -e "s/^XXX/$VERSION/m" LATMOS-Accounts-Web/Changes
17
18find -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
36rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@yuko.aero.jussieu.fr:/tmp
37rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@kohane.aero.jussieu.fr:/tmp
38rsync -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}/
43ssh root@kohane.aero.jussieu.fr rpm -Fvh /tmp/*.rpm
44
Note: See TracBrowser for help on using the repository browser.