gradle: use $version for APP_VERSION as well
This commit is contained in:
parent
ac81247da8
commit
e685a5080f
2 changed files with 3 additions and 2 deletions
|
@ -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 "$@"
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue