summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2011-02-11 23:03:40 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2011-02-11 23:21:49 +0100
commite2a35242b05676a9b0cbad9c7ade5e6d5c6e6420 (patch)
tree5a2e994a8f9b1424269038c12207901b57a2df11
parentb46e06bc74a411b1e96c1211490102c48b091866 (diff)
downloadjgit-e2a35242b05676a9b0cbad9c7ade5e6d5c6e6420.tar.gz
jgit-e2a35242b05676a9b0cbad9c7ade5e6d5c6e6420.zip
Fix version.sh
Change-Id: Ia010c9cecefbfb90ae54786adc7c8d838525d2f3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rwxr-xr-xtools/version.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/version.sh b/tools/version.sh
index 2b9fdfadae..1ed6c01b69 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -116,6 +116,12 @@ perl -pi~ -e '
' $(git ls-files | grep META-INF/MANIFEST.MF)
perl -pi~ -e '
+ s/^(Bundle-Version:\s*).*$/${1}'"$OSGI_V"'/;
+ s/(org.eclipse.jgit.*;version=")[^"[(]*(")/${1}'"$API_V"'${2}/;
+ s/(org.eclipse.jgit.*;version="\[)[^"]*(\)")/${1}'"$API_V,$API_N"'${2}/;
+ ' $(git ls-files | grep META-INF/SOURCE-MANIFEST.MF)
+
+perl -pi~ -e '
if ($ARGV ne $old_argv) {
$seen_version = 0;
$old_argv = $ARGV;
@@ -135,7 +141,7 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
- if ($seen_version < 4) {
+ if ($seen_version < 6) {
$seen_version++ if
s{<(version)>.*</\1>}{<${1}>'"$POM_V"'</${1}>};
}
@@ -146,6 +152,17 @@ perl -pi~ -e '
$seen_version = 0;
$old_argv = $ARGV;
}
+ if ($seen_version < 2) {
+ $seen_version++ if
+ s{<(version)>.*</\1>}{<${1}>'"$POM_V"'</${1}>};
+ }
+ ' org.eclipse.jgit.packaging/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}>};