source: tags/5.2.11/trunk/latmosnextversion @ 1952

Last change on this file since 1952 was 1952, checked in by nanardon, 7 years ago
  • 5.2.11
File size: 1.2 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
15find -name "*.tar.gz" -o -name "*.rpm" | xargs rm
16
17(
18    cd LATMOS-Accounts
19    perl Makefile.PL
20    make rpm
21)
22(
23    cd LATMOS-Accounts-Web/;
24    perl Makefile.PL;
25    make rpm
26)
27
28(
29    cd ..
30    svn cp trunk tags/$VERSION
31)
32
33rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@yuko.aero.jussieu.fr:/tmp
34rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@kohane.aero.jussieu.fr:/tmp
35rsync -avPH ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm \
36            ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm \
37            nanardon@forge.ipsl.jussieu.fr:/ipsl/forge/projets/link-accounts/web/release/${VERSION}/
38ssh root@kohane.aero.jussieu.fr rpm -Fvh /tmp/*.rpm
39
Note: See TracBrowser for help on using the repository browser.