Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2019-03-14 04:52:17 -0400
committerMatthias Sohn2019-03-14 04:52:17 -0400
commitc7845fb53f9c365fcd77e3bc618b035b0ff602fd (patch)
tree5628d4a781dd85c3fb2cdd1e021d514f556c6ebd
parenta23787cede24ac9c3cdd97285f6d16f67b0995db (diff)
downloadegit-c7845fb53f9c365fcd77e3bc618b035b0ff602fd.tar.gz
egit-c7845fb53f9c365fcd77e3bc618b035b0ff602fd.tar.xz
egit-c7845fb53f9c365fcd77e3bc618b035b0ff602fd.zip
Fix version.sh to update version of o.e.j.ssh.apache feature
Change-Id: I64cbe7c25a2fcdd69f4036d8980c48b42dc30206 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rwxr-xr-xtools/version.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/version.sh b/tools/version.sh
index a934c85ec..6b52d0083 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -121,6 +121,18 @@ perl -pi~ -e '
$seen_version = 1 if (!/<\?xml/ &&
s/(version=")[^"]*(")/${1}'"$OSGI_V"'${2}/);
}
+ s/(feature="org.eclipse.jgit.ssh.apache" version=")[^"]*(")/${1}'"$JGIT_V"'${2}/;
+ ' org.eclipse.egit-feature/feature.xml
+
+perl -pi~ -e '
+ if ($ARGV ne $old_argv) {
+ $seen_version = 0;
+ $old_argv = $ARGV;
+ }
+ if (!$seen_version) {
+ $seen_version = 1 if (!/<\?xml/ &&
+ s/(version=")[^"]*(")/${1}'"$OSGI_V"'${2}/);
+ }
s/(feature="org.eclipse.egit" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/;
' org.eclipse.egit.mylyn-feature/feature.xml

Back to the top