Strabon

annotate 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
rev   line source
johnvl@1484 1 #!/bin/bash
johnvl@1484 2 #
johnvl@1484 3 # Should be run without arguments from inside the endpoint-exec directory.
johnvl@1484 4 #
johnvl@1484 5
johnvl@1484 6 VERSION=`grep version pom.xml | head -1 | sed 's/\(.*\)<version>\(.*\)<\/version>/\2/'`
johnvl@1484 7
johnvl@1484 8 sed -i "s/^Version.*$/Version: ${VERSION}/" ./src/deb/control/control
johnvl@1484 9