lila/lila

32 lines
754 B
Plaintext
Raw Normal View History

#!/bin/sh -e
# Starts a dev console to compile and run lichess.
2019-12-07 21:42:48 -07:00
2018-12-12 06:22:19 -07:00
# Usage:
2019-12-07 21:42:48 -07:00
# ./run
# Then in the sbt console:
# ~run
2019-12-09 09:22:37 -07:00
# We use .sbtopts instead
2019-12-07 21:42:48 -07:00
export SBT_OPTS=""
2019-12-13 11:18:39 -07:00
if [ ! -f ".sbtopts" ]; then
cp .sbtopts.default .sbtopts
fi
2019-12-12 12:34:21 -07:00
if [ ! -f "conf/application.conf" ]; then
cp conf/application.conf.default conf/application.conf
fi
echo "
2019-11-15 16:11:52 -07:00
|\_ _ _ _
/o \\\\ | (_) ___| |__ ___ ___ ___ ___ _ __ __ _
(_. || | | |/ __| '_ \ / _ \/ __/ __| / _ \| '__/ _\` |
/__\\\\ | | | (__| | | | __/\__ \__ \| (_) | | | (_| |
)___( |_|_|\___|_| |_|\___||___/___(_)___/|_| \__, |
|___/"
version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
2019-12-07 21:42:48 -07:00
echo Java version: "$version"
2019-12-07 21:42:48 -07:00
sbt "$@"