2015-12-24 10:26:29 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mvn versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
|
2018-01-10 12:51:53 -08:00
|
|
|
|
2018-01-10 13:29:06 -08:00
|
|
|
cd tools/eclipse
|
2018-01-10 12:51:53 -08:00
|
|
|
mvn tycho-versions:set-version -DnewVersion=$2
|
|
|
|
|
2018-01-10 13:29:06 -08:00
|
|
|
cd core-plugin
|
2018-01-10 12:51:53 -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
|
2018-01-10 13:29:06 -08:00
|
|
|
cd ..
|
2018-01-10 12:51:53 -08:00
|
|
|
|
2018-01-10 13:29:06 -08:00
|
|
|
cd m2e-plugin
|
2018-01-10 12:51:53 -08:00
|
|
|
sed -r -i -e "s/<versionRange>.+<\/versionRange>/<versionRange>$1<\/versionRange>/" lifecycle-mapping-metadata.xml
|
2018-01-10 13:29:06 -08:00
|
|
|
cd ..
|
2018-01-10 12:51:53 -08:00
|
|
|
|
2018-01-10 13:29:06 -08:00
|
|
|
cd ../..
|
2018-01-10 12:51:53 -08:00
|
|
|
|