gradle: use $version for APP_VERSION as well

This commit is contained in:
Jürgen Buchmüller 2015-11-03 16:15:22 +01:00
parent ac81247da8
commit e685a5080f
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,6 @@
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
APP_HOME="/usr/lib/gradle"
APP_VERSION=2.8
APP_VERSION=@VERSION@
java $JAVA_OPTS -classpath $APP_HOME/lib/gradle-launcher-$APP_VERSION.jar org.gradle.launcher.GradleMain "$@"

View File

@ -15,7 +15,8 @@ checksum=a88db9c2f104defdaa8011c58cf6cda6c114298ae3695ecfb8beb30da3a903cb
do_install() {
vmkdir "usr/lib/gradle"
vmkdir "usr/share/doc/gradle"
vbin ${FILESDIR}/gradle
sed ${FILESDIR}/gradle -e "s;@VERSION@;${version};" > gradle
vbin gradle
cp -v getting-started.html changelog.txt ${DESTDIR}/usr/share/doc/gradle
mv lib ${DESTDIR}/usr/lib/gradle/