source: tags/5.1.8/latmosnextversion @ 1708

Last change on this file since 1708 was 1708, checked in by nanardon, 8 years ago
  • 5.1.8
File size: 699 bytes
Line 
1#!/bin/sh -e
2
3VERSION=$1
4
5if [ -z "$VERSION" ]; then
6   echo "No version given"
7   exit 1
8fi
9
10perl -pi -e "s/our \\\$VERSION =.*/our \\\$VERSION = '$VERSION';/" LATMOS-Accounts/lib/LATMOS/Accounts.pm
11perl -pi -e "s/our \\\$VERSION =.*/our \\\$VERSION = '$VERSION';/" LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web.pm
12
13find -name "*.tar.gz" -o -name "*.rpm" | xargs rm
14
15(
16    cd LATMOS-Accounts
17    perl Makefile.PL
18    make rpm
19)
20(
21    cd LATMOS-Accounts-Web/;
22    perl Makefile.PL;
23    make rpm
24)
25
26(
27    cd ..
28    svn cp trunk tags/$VERSION
29)
30
31scp ./LATMOS-Accounts/noarch/latmos-accounts-*-*.noarch.rpm ./LATMOS-Accounts-Web/noarch/latmos-accounts-web-*-*.noarch.rpm root@yuko.aero.jussieu.fr:/tmp
32
33
Note: See TracBrowser for help on using the repository browser.