Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthias Sohn2013-06-13 15:16:41 +0000
committerMatthias Sohn2013-08-22 22:06:58 +0000
commit227eddecfca8f38ceb3a0936c11bbf908dab665c (patch)
treea40d69d18420e6b36e67f19635f66b900cb31d70 /tools
parent84bfabd5655949f87b894d5ca9690bb2c93f16bb (diff)
downloadegit-227eddecfca8f38ceb3a0936c11bbf908dab665c.tar.gz
egit-227eddecfca8f38ceb3a0936c11bbf908dab665c.tar.xz
egit-227eddecfca8f38ceb3a0936c11bbf908dab665c.zip
Fix version.sh to correctly modify dependencies
The script missed to update the egit and jgit feature dependencies in o.e.e.mylyn.ui.test/pom.xml when setting a new snapshot version. Change-Id: I8fd22f51d7e7ab162891cabe448495f1aa46da2c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/version.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/version.sh b/tools/version.sh
index a4a9e35976..49e6335b51 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -190,6 +190,22 @@ perl -pi~ -e '
perl -pi~ -e '
if ($ARGV ne $old_argv) {
$seen_version = 0;
+ $seen_version2 = 0;
+ $old_argv = $ARGV;
+ }
+ if (!$seen_version) {
+ $seen_version = 1 if
+ s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
+ }
+ if ($seen_version2 < 3) {
+ $seen_version2++ if
+ s|(<version\>)([\.\d]*)(\</version\>)|${1}'$EGIT_V'${3}|;
+ }
+ ' org.eclipse.egit.mylyn.ui.test/pom.xml
+
+perl -pi~ -e '
+ if ($ARGV ne $old_argv) {
+ $seen_version = 0;
$old_argv = $ARGV;
}
if (!$seen_version) {

Back to the top