forked from lichess-org/lila
-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
lila
executable file
·37 lines (28 loc) · 900 Bytes
/
lila
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh -e
# Starts a dev console to compile and run lichess.
# Usage:
# ./lila
# Then in the sbt console:
# run
# We use .sbtopts instead
export SBT_OPTS=""
if [ ! -f ".sbtopts" ]; then
cp .sbtopts.default .sbtopts
fi
if [ ! -f "conf/application.conf" ]; then
cp conf/application.conf.default conf/application.conf
fi
java_env="-Dreactivemongo.api.bson.document.strict=false"
cat << "BANNER"
_______ _ _ _ _
| | (_)___| |__ ___ __ _(_) ___ _ __ __ _
___|___ | | / __| '_ \ / _ \ / _` | | / _ \| '__/ _` |
| | | \__ \ | | | (_) | (_| | || (_) | | | (_| |
____|____ |_|_|___/_| |_|\___/ \__, |_(_)___/|_| \__, |
|___/ |___/
BANNER
version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
echo Java "$version"
command="sbt $java_env $@"
echo $command
$command