Strabon

diff scripts/update-debian-version.sh @ 1484:fdbcb246115b

#58 added script that is invoked by maven to update the versions in
the control files
author Giannis Vlachopoulos <johnvl@di.uoa.gr>
date Wed Mar 11 15:29:31 2015 +0200 (2015-03-11)
parents
children 485e825512e4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/update-debian-version.sh	Wed Mar 11 15:29:31 2015 +0200
     1.3 @@ -0,0 +1,9 @@
     1.4 +#!/bin/bash
     1.5 +#
     1.6 +# Should be run without arguments from inside the endpoint-exec directory.
     1.7 +#
     1.8 +
     1.9 +VERSION=`grep version pom.xml | head -1 | sed 's/\(.*\)<version>\(.*\)<\/version>/\2/'`
    1.10 +
    1.11 +sed -i "s/^Version.*$/Version: ${VERSION}/" ./src/deb/control/control
    1.12 +