Browse Source

Fix version.sh to not overwrite ${project.version}

Change-Id: If5ae792581170bcba2dc1860012cbe389d8e9f24
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-3.0
Matthias Sohn 12 years ago
parent
commit
79a2e28a93
  1. 13
      tools/version.sh

13
tools/version.sh

@ -133,7 +133,14 @@ perl -pi~ -e '
' org.eclipse.jgit.packaging/org.*.feature/feature.xml
perl -pi~ -e '
s{<(version)>.*</\1>}{<${1}>'"$POM_V"'</${1}>};
if ($ARGV ne $old_argv) {
$seen_version = 0;
$old_argv = $ARGV;
}
if (!$seen_version) {
$seen_version = 1 if
s{<(version)>.*</\1>}{<${1}>'"$POM_V"'</${1}>};
}
' org.eclipse.jgit.packaging/org.*.feature/pom.xml
perl -pi~ -e '
@ -152,8 +159,8 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
if ($seen_version < 2) {
$seen_version++ if
if (!$seen_version) {
$seen_version = 1 if
s{<(version)>.*</\1>}{<${1}>'"$POM_V"'</${1}>};
}
' org.eclipse.jgit.packaging/pom.xml

Loading…
Cancel
Save