Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthias Sohn2011-02-11 22:45:28 +0000
committerMatthias Sohn2011-02-11 23:27:28 +0000
commit8219facc760d9783bec175aee11f89b32a9578bd (patch)
tree5e6a200c161b4c60b8bc4f4cacb5eb0ea899d75e /tools
parentc0c1025f18e7be8b508fc2147e317add943ba7eb (diff)
downloadegit-8219facc760d9783bec175aee11f89b32a9578bd.tar.gz
egit-8219facc760d9783bec175aee11f89b32a9578bd.tar.xz
egit-8219facc760d9783bec175aee11f89b32a9578bd.zip
Fix version.sh
Also change sorting in org.eclipse.egit.ui.test/pom.xml to ease finding versions to be changed by version.sh. Change-Id: Ic7518ab2eb65d43c3bdba8f957e82e6700beb95f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/version.sh39
1 files changed, 38 insertions, 1 deletions
diff --git a/tools/version.sh b/tools/version.sh
index e97a2b7472..e373d72615 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -113,12 +113,26 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
+ if ($seen_version < 4) {
+ $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}/;
+ ' org.eclipse.egit.mylyn-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}/);
}
s/(feature="org.eclipse.jgit" version=")[^"]*(")/${1}'"$JGIT_V"'${2}/;
- ' org.eclipse.egit-feature/feature.xml
+ ' $(git ls-files | grep feature.xml)
perl -pi~ -e '
s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
@@ -129,6 +143,18 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
+ if (!$seen_version) {
+ $seen_version = 1 if
+ s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
+ }
+ s{<(egit-version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
+ ' pom.xml
+
+perl -pi~ -e '
+ if ($ARGV ne $old_argv) {
+ $seen_version = 0;
+ $old_argv = $ARGV;
+ }
if ($seen_version < 2) {
$seen_version++ if
s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
@@ -140,6 +166,17 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
+ if ($seen_version < 3) {
+ $seen_version++ if
+ s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>};
+ }
+ ' org.eclipse.egit.ui.test/pom.xml
+
+perl -pi~ -e '
+ 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}>};

Back to the top