3 # Updates MANIFEST.MF files for EGit plugins.
8 echo >&2 "usage: $0 version"
12 MF
=$
(git ls-files |
grep META-INF
/MANIFEST.MF
)
13 FX
=org.eclipse.egit-feature
/feature.xml
14 SX
=org.eclipse.egit-updatesite
/site.xml
20 perl
-pi -e 's/^(Bundle-Version:).*/$1 '$version/ $MF
22 if (/^.*version=/ && ++$f == 2) {
23 s/^(.*version)=".*"/$1="'$version'"/
27 s/(egit_).*?(.jar)/${1}'$version'$2/;
28 s/(version)=".*?"/$1="'$version'"/;
33 git commit
-s -m "EGit $v" $ALL &&
34 c
=$
(git rev-parse HEAD
) &&
36 replace
$v.qualifier
&&
37 git commit
-s -m "Re-add version qualifier suffix to $v" $ALL &&
40 tagcmd
="git tag -s -m 'EGit $v' v$v $c" &&