Strabon
changeset 1484:fdbcb246115b
#58 added script that is invoked by maven to update the versions in
the control files
the control files
author | Giannis Vlachopoulos <johnvl@di.uoa.gr> |
---|---|
date | Wed Mar 11 15:29:31 2015 +0200 (2015-03-11) |
parents | 82f0d492d319 |
children | ab5aa71b5d00 |
files | ChangeLog endpoint-exec/pom.xml endpoint-exec/src/deb/control/control runtime/pom.xml runtime/src/deb/control/control scripts/update-debian-version.sh |
line diff
1.1 --- a/ChangeLog Fri Feb 13 17:31:49 2015 +0200 1.2 +++ b/ChangeLog Wed Mar 11 15:29:31 2015 +0200 1.3 @@ -1,3 +1,7 @@ 1.4 + * Bug #58, added script that is invoked my maven to also update the 1.5 + version described in the deb/control file of the runtime and 1.6 + endpoint-exec components. 1.7 + 1.8 * Related to bug #58, but it generally enhances Strabon; The runtime 1.9 component has also been debianized. Dependencies are added to 1.10 /usr/share/jdeb/lib/strabon-runtime. ClassPath and strabon script
2.1 --- a/endpoint-exec/pom.xml Fri Feb 13 17:31:49 2015 +0200 2.2 +++ b/endpoint-exec/pom.xml Wed Mar 11 15:29:31 2015 +0200 2.3 @@ -111,57 +111,75 @@ 2.4 <build> 2.5 <plugins> 2.6 <plugin> 2.7 - <artifactId>jdeb</artifactId> 2.8 - <groupId>org.vafer</groupId> 2.9 - <version>1.3</version> 2.10 - <executions> 2.11 - <execution> 2.12 - <phase>package</phase> 2.13 - <goals> 2.14 - <goal>jdeb</goal> 2.15 - </goals> 2.16 - <configuration> 2.17 - <skipPOMs>false</skipPOMs> 2.18 - <dataSet> 2.19 - <data> 2.20 - <src>${project.build.directory}/strabon-endpoint-executable-${project.version}.jar</src> 2.21 - <type>file</type> 2.22 - <mapper> 2.23 - <type>perm</type> 2.24 - <prefix>/usr/share/jdeb/lib</prefix> 2.25 - </mapper> 2.26 - </data> 2.27 - <data> 2.28 - <src>${basedir}/strabon-endpoint</src> 2.29 - <type>file</type> 2.30 - <mapper> 2.31 - <type>perm</type> 2.32 - <prefix>/usr/local/bin</prefix> 2.33 - <user>root</user> 2.34 - <group>root</group> 2.35 - <filemode>755</filemode> 2.36 - </mapper> 2.37 - </data> 2.38 - <data> 2.39 - <src>${basedir}/strabon-init</src> 2.40 - <type>file</type> 2.41 - <mapper> 2.42 - <type>perm</type> 2.43 - <prefix>/usr/local/bin</prefix> 2.44 - <user>root</user> 2.45 - <group>root</group> 2.46 - <filemode>755</filemode> 2.47 - </mapper> 2.48 - </data> 2.49 - </dataSet> 2.50 - </configuration> 2.51 - </execution> 2.52 - </executions> 2.53 - </plugin> 2.54 + <groupId>org.codehaus.mojo</groupId> 2.55 + <artifactId>exec-maven-plugin</artifactId> 2.56 + <version>1.1.1</version> 2.57 + <executions> 2.58 + <execution> 2.59 + <!-- 2.60 + <id>some-execution</id> 2.61 + --> 2.62 + <phase>package</phase> 2.63 + <goals> 2.64 + <goal>exec</goal> 2.65 + </goals> 2.66 + </execution> 2.67 + </executions> 2.68 + <configuration> 2.69 + <executable>${basedir}/../scripts/update-debian-version.sh</executable> 2.70 + </configuration> 2.71 + </plugin> 2.72 2.73 - </plugins> 2.74 - </build> 2.75 - 2.76 + <plugin> 2.77 + <artifactId>jdeb</artifactId> 2.78 + <groupId>org.vafer</groupId> 2.79 + <version>1.3</version> 2.80 + <executions> 2.81 + <execution> 2.82 + <phase>package</phase> 2.83 + <goals> 2.84 + <goal>jdeb</goal> 2.85 + </goals> 2.86 + <configuration> 2.87 + <skipPOMs>false</skipPOMs> 2.88 + <dataSet> 2.89 + <data> 2.90 + <src>${project.build.directory}/strabon-endpoint-executable-${project.version}.jar</src> 2.91 + <type>file</type> 2.92 + <mapper> 2.93 + <type>perm</type> 2.94 + <prefix>/usr/share/jdeb/lib</prefix> 2.95 + </mapper> 2.96 + </data> 2.97 + <data> 2.98 + <src>${basedir}/strabon-endpoint</src> 2.99 + <type>file</type> 2.100 + <mapper> 2.101 + <type>perm</type> 2.102 + <prefix>/usr/local/bin</prefix> 2.103 + <user>root</user> 2.104 + <group>root</group> 2.105 + <filemode>755</filemode> 2.106 + </mapper> 2.107 + </data> 2.108 + <data> 2.109 + <src>${basedir}/strabon-init</src> 2.110 + <type>file</type> 2.111 + <mapper> 2.112 + <type>perm</type> 2.113 + <prefix>/usr/local/bin</prefix> 2.114 + <user>root</user> 2.115 + <group>root</group> 2.116 + <filemode>755</filemode> 2.117 + </mapper> 2.118 + </data> 2.119 + </dataSet> 2.120 + </configuration> 2.121 + </execution> 2.122 + </executions> 2.123 + </plugin> 2.124 + </plugins> 2.125 + </build> 2.126 </profile> 2.127 </profiles> 2.128 </project>
3.1 --- a/endpoint-exec/src/deb/control/control Fri Feb 13 17:31:49 2015 +0200 3.2 +++ b/endpoint-exec/src/deb/control/control Wed Mar 11 15:29:31 2015 +0200 3.3 @@ -1,5 +1,5 @@ 3.4 Package: Strabon 3.5 -Version: 3.2.11 3.6 +Version: 3.2.11-SNAPSHOT 3.7 Section: strabon-endpoint 3.8 Priority: optional 3.9 Architecture: all
4.1 --- a/runtime/pom.xml Fri Feb 13 17:31:49 2015 +0200 4.2 +++ b/runtime/pom.xml Wed Mar 11 15:29:31 2015 +0200 4.3 @@ -443,6 +443,25 @@ 4.4 </activation> 4.5 <build> 4.6 <plugins> 4.7 +<plugin> 4.8 + <groupId>org.codehaus.mojo</groupId> 4.9 + <artifactId>exec-maven-plugin</artifactId> 4.10 + <version>1.1.1</version> 4.11 + <executions> 4.12 + <execution> 4.13 + <!-- 4.14 + <id>some-execution</id> 4.15 + --> 4.16 + <phase>package</phase> 4.17 + <goals> 4.18 + <goal>exec</goal> 4.19 + </goals> 4.20 + </execution> 4.21 + </executions> 4.22 + <configuration> 4.23 + <executable>${basedir}/../scripts/update-debian-version.sh</executable> 4.24 + </configuration> 4.25 + </plugin> 4.26 <plugin> 4.27 <artifactId>jdeb</artifactId> 4.28 <groupId>org.vafer</groupId>
5.1 --- a/runtime/src/deb/control/control Fri Feb 13 17:31:49 2015 +0200 5.2 +++ b/runtime/src/deb/control/control Wed Mar 11 15:29:31 2015 +0200 5.3 @@ -1,5 +1,5 @@ 5.4 Package: Strabon 5.5 -Version: 3.2.11 5.6 +Version: 3.2.11-SNAPSHOT 5.7 Section: strabon-cmd 5.8 Priority: optional 5.9 Architecture: all
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/scripts/update-debian-version.sh Wed Mar 11 15:29:31 2015 +0200 6.3 @@ -0,0 +1,9 @@ 6.4 +#!/bin/bash 6.5 +# 6.6 +# Should be run without arguments from inside the endpoint-exec directory. 6.7 +# 6.8 + 6.9 +VERSION=`grep version pom.xml | head -1 | sed 's/\(.*\)<version>\(.*\)<\/version>/\2/'` 6.10 + 6.11 +sed -i "s/^Version.*$/Version: ${VERSION}/" ./src/deb/control/control 6.12 +