Change-Id: If5ae792581170bcba2dc1860012cbe389d8e9f24
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
' 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 '
$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