]> source.dussan.org Git - jgit.git/commitdiff
Fix version.sh to update Eclipse-SourceBundle version 46/25246/1
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 17 Apr 2014 23:11:49 +0000 (01:11 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 17 Apr 2014 23:40:47 +0000 (01:40 +0200)
The version attribute of Eclipse-SourceBundle must match
the bundle version.

Change-Id: Ic629ccae1d89c9070e4ec80420a0e2ed7d403922
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tools/version.sh

index 52a02c59f7029a63c19d03b5b7641199ec03d97c..a2f81290d6ef0769005d6e9e270afcba226c3ff8 100755 (executable)
@@ -119,6 +119,7 @@ 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}/;
+       s/^(Eclipse-SourceBundle:\s*org.eclipse.jgit.*;version=\").*(\";roots=\"\.\")$/${1}'"$OSGI_V"'${2}/;
        ' $(git ls-files | grep META-INF/SOURCE-MANIFEST.MF)
 
 perl -pi~ -e '