22 lines
470 B
Bash
Executable file
22 lines
470 B
Bash
Executable file
#!/bin/sh
|
|
. bin/lilarc
|
|
|
|
name="play-$PLAY_VERSION"
|
|
file="$name.zip"
|
|
url="http://downloads.typesafe.com/play/$PLAY_VERSION/$file"
|
|
|
|
# install play2 if missing (first run)
|
|
if [ ! -f $name/play ]; then
|
|
echo
|
|
echo "[lila] proceeding to $name installation"
|
|
echo
|
|
echo " - Downloading $url"
|
|
curl -o $file $url
|
|
echo " - Installing $name"
|
|
unzip $file > /dev/null
|
|
rm $file
|
|
echo " - $name downloaded and installed successfuly"
|
|
fi
|
|
|
|
$name/play $JVM_OPTIONS "$@"
|