lila/bin/play
Thibault Duplessis 852f003967 play 2.1.2-RC1
2013-05-16 20:40:39 -03:00

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 "$@"