]> source.dussan.org Git - jgit.git/commitdiff
Fix version.sh 81/2481/1
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 11 Feb 2011 22:03:40 +0000 (23:03 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 11 Feb 2011 22:21:49 +0000 (23:21 +0100)
Change-Id: Ia010c9cecefbfb90ae54786adc7c8d838525d2f3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tools/version.sh

index 2b9fdfadaecb9a3e428732a7884ca97dcf4f66e1..1ed6c01b69a130e8a9c39551bb5b873a8b8a2811 100755 (executable)
@@ -115,6 +115,12 @@ perl -pi~ -e '
        s/(org.eclipse.jgit.*;version="\[)[^"]*(\)")/${1}'"$API_V,$API_N"'${2}/;
        ' $(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;
@@ -135,12 +141,23 @@ 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}>};
        }
        ' org.eclipse.jgit.packaging/org.eclipse.jgit.updatesite/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}>};
+       }
+       ' org.eclipse.jgit.packaging/pom.xml
+
 perl -pi~ -e '
        if ($ARGV ne $old_argv) {
                $seen_version = 0;