Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2011-12-10 21:20:30 +0000
committerMatthias Sohn2011-12-10 23:37:23 +0000
commita74fd08d6a83b4dee88c31e4e65c10e5c74a8f7b (patch)
tree16d2b7d7b3feab4a257ad98275a2434b10aa02fc /tools/version.sh
parent664ea7954b9e7f6aec5649f2dc14bf852cf2c44d (diff)
downloadegit-a74fd08d6a83b4dee88c31e4e65c10e5c74a8f7b.tar.gz
egit-a74fd08d6a83b4dee88c31e4e65c10e5c74a8f7b.tar.xz
egit-a74fd08d6a83b4dee88c31e4e65c10e5c74a8f7b.zip
Fix version.sh
Change-Id: Ie3ef9a73154a5c11e3924201841b4dd52fa9956b Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'tools/version.sh')
-rwxr-xr-xtools/version.sh27
1 files changed, 21 insertions, 6 deletions
diff --git a/tools/version.sh b/tools/version.sh
index e373d72615..81d72b7c47 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -117,9 +117,7 @@ perl -pi~ -e '
$seen_version++ if (!/<\?xml/ &&
s/(version=")[^"]*(")/${1}'"$OSGI_V"'${2}/);
}
- s/(feature="org.eclipse.egit.core" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/;
- s/(feature="org.eclipse.egit.ui" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/;
- s/(feature="org.eclipse.jgit" version=")[^"]*(")/${1}'"$JGIT_V"'${2}/;
+ s/(feature="org.eclipse.egit" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/;
' org.eclipse.egit.mylyn-feature/feature.xml
perl -pi~ -e '
@@ -127,6 +125,18 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
+ if ($seen_version < 2) {
+ $seen_version++ if (!/<\?xml/ &&
+ s/(version=")[^"]*(")/${1}'"$OSGI_V"'${2}/);
+ }
+ s/(plugin="org.eclipse.egit.core" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/;
+ ' org.eclipse.egit.psf-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}/);
@@ -149,7 +159,7 @@ perl -pi~ -e '
}
s{<(egit-version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
' pom.xml
-
+
perl -pi~ -e '
if ($ARGV ne $old_argv) {
$seen_version = 0;
@@ -164,12 +174,17 @@ perl -pi~ -e '
perl -pi~ -e '
if ($ARGV ne $old_argv) {
$seen_version = 0;
+ $seen_version2 = 0;
$old_argv = $ARGV;
}
- if ($seen_version < 3) {
- $seen_version++ if
+ if (!$seen_version) {
+ $seen_version = 1 if
s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
}
+ if ($seen_version2 < 2) {
+ $seen_version2++ if
+ s|(<version\>)([\.\d]*)(\</version\>)|${1}'$EGIT_V'${3}|;
+ }
' org.eclipse.egit.ui.test/pom.xml
perl -pi~ -e '

Back to the top