Browse Source

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 <matthias.sohn@sap.com>
tags/v5.3.0.201901162155-m1
Matthias Sohn 5 years ago
parent
commit
13f9aae49a
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      tools/version.sh

+ 11
- 0
tools/version.sh View File

@@ -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>}{<${1}>'"$POM_V"'</${1}>};
}
' org.eclipse.jgit.coverage/pom.xml

perl -pi~ -e '
if ($ARGV ne $old_argv) {
$seen_version = 0;

Loading…
Cancel
Save