# HG changeset patch # User Giannis Vlachopoulos # Date 1426080571 -7200 # Node ID fdbcb246115bcb83808fccc080be467f84291e57 # Parent 82f0d492d319a4a3ba70148afc125707fb059a65 #58 added script that is invoked by maven to update the versions in the control files diff -r 82f0d492d319 -r fdbcb246115b ChangeLog --- a/ChangeLog Fri Feb 13 17:31:49 2015 +0200 +++ b/ChangeLog Wed Mar 11 15:29:31 2015 +0200 @@ -1,3 +1,7 @@ + * Bug #58, added script that is invoked my maven to also update the + version described in the deb/control file of the runtime and + endpoint-exec components. + * Related to bug #58, but it generally enhances Strabon; The runtime component has also been debianized. Dependencies are added to /usr/share/jdeb/lib/strabon-runtime. ClassPath and strabon script diff -r 82f0d492d319 -r fdbcb246115b endpoint-exec/pom.xml --- a/endpoint-exec/pom.xml Fri Feb 13 17:31:49 2015 +0200 +++ b/endpoint-exec/pom.xml Wed Mar 11 15:29:31 2015 +0200 @@ -111,57 +111,75 @@ - jdeb - org.vafer - 1.3 - - - package - - jdeb - - - false - - - ${project.build.directory}/strabon-endpoint-executable-${project.version}.jar - file - - perm - /usr/share/jdeb/lib - - - - ${basedir}/strabon-endpoint - file - - perm - /usr/local/bin - root - root - 755 - - - - ${basedir}/strabon-init - file - - perm - /usr/local/bin - root - root - 755 - - - - - - - + org.codehaus.mojo + exec-maven-plugin + 1.1.1 + + + + package + + exec + + + + + ${basedir}/../scripts/update-debian-version.sh + + - - - + + jdeb + org.vafer + 1.3 + + + package + + jdeb + + + false + + + ${project.build.directory}/strabon-endpoint-executable-${project.version}.jar + file + + perm + /usr/share/jdeb/lib + + + + ${basedir}/strabon-endpoint + file + + perm + /usr/local/bin + root + root + 755 + + + + ${basedir}/strabon-init + file + + perm + /usr/local/bin + root + root + 755 + + + + + + + + + diff -r 82f0d492d319 -r fdbcb246115b endpoint-exec/src/deb/control/control --- a/endpoint-exec/src/deb/control/control Fri Feb 13 17:31:49 2015 +0200 +++ b/endpoint-exec/src/deb/control/control Wed Mar 11 15:29:31 2015 +0200 @@ -1,5 +1,5 @@ Package: Strabon -Version: 3.2.11 +Version: 3.2.11-SNAPSHOT Section: strabon-endpoint Priority: optional Architecture: all diff -r 82f0d492d319 -r fdbcb246115b runtime/pom.xml --- a/runtime/pom.xml Fri Feb 13 17:31:49 2015 +0200 +++ b/runtime/pom.xml Wed Mar 11 15:29:31 2015 +0200 @@ -443,6 +443,25 @@ + + org.codehaus.mojo + exec-maven-plugin + 1.1.1 + + + + package + + exec + + + + + ${basedir}/../scripts/update-debian-version.sh + + jdeb org.vafer diff -r 82f0d492d319 -r fdbcb246115b runtime/src/deb/control/control --- a/runtime/src/deb/control/control Fri Feb 13 17:31:49 2015 +0200 +++ b/runtime/src/deb/control/control Wed Mar 11 15:29:31 2015 +0200 @@ -1,5 +1,5 @@ Package: Strabon -Version: 3.2.11 +Version: 3.2.11-SNAPSHOT Section: strabon-cmd Priority: optional Architecture: all diff -r 82f0d492d319 -r fdbcb246115b scripts/update-debian-version.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/update-debian-version.sh Wed Mar 11 15:29:31 2015 +0200 @@ -0,0 +1,9 @@ +#!/bin/bash +# +# Should be run without arguments from inside the endpoint-exec directory. +# + +VERSION=`grep version pom.xml | head -1 | sed 's/\(.*\)\(.*\)<\/version>/\2/'` + +sed -i "s/^Version.*$/Version: ${VERSION}/" ./src/deb/control/control +