From 13f9aae49ad7597f8063d949aec2a9737b7340c9 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Thu, 17 Jan 2019 02:55:11 +0100 Subject: [PATCH] Fix tools/version.sh The script missed to update all but the first version in org.eclipse.jgit.coverage/pom.xml Change-Id: If8021accf07d7b57b477992cc0f1ba8ddc7db9a6 Signed-off-by: Matthias Sohn --- tools/version.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/version.sh b/tools/version.sh index e5c98ecdc..8b8095db4 100755 --- a/tools/version.sh +++ b/tools/version.sh @@ -156,6 +156,17 @@ perl -pi~ -e ' } ' org.eclipse.jgit.packaging/pom.xml +perl -pi~ -e ' + if ($ARGV ne $old_argv) { + $seen_version = 0; + $old_argv = $ARGV; + } + if ($seen_version < 18) { + $seen_version++ if + s{<(version)>.*}{<${1}>'"$POM_V"'}; + } + ' org.eclipse.jgit.coverage/pom.xml + perl -pi~ -e ' if ($ARGV ne $old_argv) { $seen_version = 0;