diff options
author | Matthias Sohn | 2015-01-12 13:26:04 +0000 |
---|---|---|
committer | Matthias Sohn | 2015-01-14 09:30:36 +0000 |
commit | 6cfb33a2494902b7e9da4b83d013fcd97f4ecaa1 (patch) | |
tree | 1f898bae45497de6593b38e328beaf4f66dd64b3 /tools | |
parent | b267cccca140bae6e89d8ca560b6ae89449e1f13 (diff) | |
download | egit-github-6cfb33a2494902b7e9da4b83d013fcd97f4ecaa1.tar.gz egit-github-6cfb33a2494902b7e9da4b83d013fcd97f4ecaa1.tar.xz egit-github-6cfb33a2494902b7e9da4b83d013fcd97f4ecaa1.zip |
Relax JGit/EGit dependencies to allow versions in range [3.2,4.0)
Change version.sh to no longer flip versions of JGit and EGit
dependencies. They are now set to [3.2.0,4.0.0) and have to be
maintained manually from now on.
Bug: 427778
Change-Id: I771e15533aa7f59bea66fd50c6e68ab967c149e0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/version.sh | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/tools/version.sh b/tools/version.sh index 27eac1dd..f679df37 100755 --- a/tools/version.sh +++ b/tools/version.sh @@ -38,13 +38,8 @@ case "$1" in shift ;; ---jgit=*) - J=${1##--jgit=} - shift - ;; - *) - echo >&2 "usage: $0 {--snapshot=0.n.0 | --release} [--jgit=0.n.0]" + echo >&2 "usage: $0 {--snapshot=0.n.0 | --release}" exit 1 esac done @@ -95,20 +90,13 @@ next_version() { ' "$1" } -EGIT_V=$(to_version "$V") -EGIT_N=$(next_version "$EGIT_V") - -[ -z "$J" ] && J=$V -JGIT_V=$(to_version "$J") -JGIT_N=$(next_version "$JGIT_V") +GITHUB_V=$(to_version "$V") +GITHUB_N=$(next_version "$GITHUB_V") perl -pi~ -e ' s/^(Bundle-Version:\s*).*$/${1}'"$OSGI_V"'/; - s/(org.eclipse.egit.*;version=")[^"[(]*(")/${1}'"$EGIT_V"'${2}/; - s/(org.eclipse.egit.*;version="\[)[^"]*(\)")/${1}'"$EGIT_V,$EGIT_N"'${2}/; - s/(org.eclipse.mylyn.internal.github.*;version=")[^"[(]*(")/${1}'"$EGIT_V"'${2}/; - s/(org.eclipse.mylyn.internal.github.*;version="\[)[^"]*(\)")/${1}'"$EGIT_V,$EGIT_N"'${2}/; - s/(org.eclipse.jgit.*;version="\[)[^"]*(\)")/${1}'"$JGIT_V,$JGIT_N"'${2}/; + s/(org.eclipse.mylyn.internal.github.*;version=")[^"[(]*(")/${1}'"$GITHUB_V"'${2}/; + s/(org.eclipse.mylyn.internal.github.*;version="\[)[^"]*(\)")/${1}'"$GITHUB_V,$GITHUB_N"'${2}/; ' $(git ls-files | egrep "META-INF/MANIFEST.MF|META-INF/SOURCE-MANIFEST.MF") perl -pi~ -e ' @@ -116,27 +104,13 @@ 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.github.core" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/; - s/(feature="org.eclipse.mylyn.github.core" version=")[^"]*(")/${1}'"$EGIT_V"'${2}/; - s/(feature="org.eclipse.mylyn.github.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}/; - ' $(git ls-files | grep feature.xml) + s/(feature="org.eclipse.mylyn.github.core" version=")[^"]*(")/${1}'"$GITHUB_V"'${2}/; + s/(feature="org.eclipse.mylyn.github.ui" version=")[^"]*(")/${1}'"$GITHUB_V"'${2}/; + ' org.eclipse.mylyn.github-feature/feature.xml perl -pi~ -e ' s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>}; @@ -174,7 +148,6 @@ perl -pi~ -e ' $seen_version = 1 if s{<(version)>[^<\$]*</\1>}{<${1}>'"$POM_V"'</${1}>}; } - s{<(jgit-version)>[^<]*</\1>}{<${1}>'"$J"'</${1}>}; ' $(git ls-files | grep pom.*.xml) find . -name '*~' | xargs rm -f |