2015-12-25 02:26:29 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mvn versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
|
|
|
|
pushd tools/eclipse
|
2015-12-25 03:10:02 +08:00
|
|
|
mvn org.eclipse.tycho:tycho-versions-plugin:0.21.0:set-version -DnewVersion=$1
|
|
|
|
|
|
|
|
pushd core-plugin
|
2015-12-26 19:24:43 +08:00
|
|
|
sed -r -i -e "s/<version><!-- update -->(.+)<\/version>/<version><!-- update -->$1<\/version>/" dep-pom.xml
|
|
|
|
sed -r -i -e "s/(lib\/teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" build.properties
|
|
|
|
sed -r -i -e "s/(lib\/teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" META-INF/MANIFEST.MF
|
2015-12-25 03:10:02 +08:00
|
|
|
popd
|
|
|
|
|
2015-12-26 20:04:44 +08:00
|
|
|
#pushd m2e-plugin
|
|
|
|
#sed -r -i -e "s/<versionRange>.+<\/versionRange>/<versionRange>$1<\/versionRange>/" lifecycle-mapping-metadata.xml
|
|
|
|
#popd
|
2015-12-25 03:10:02 +08:00
|
|
|
popd
|