forked from glen/fostr
feat: Add OCaml code generation
Also start using nailgun to speed up code generation. Resolves #6.
This commit is contained in:
parent
380177b274
commit
f789ed94fd
10 changed files with 128 additions and 4 deletions
26
bin/let_sun_shine
Executable file
26
bin/let_sun_shine
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
BINDIR=$(dirname $BASH_SOURCE)
|
||||
|
||||
if $BINDIR/ng sunshine --help
|
||||
then
|
||||
# echo "sun already shining."
|
||||
else
|
||||
# echo "disperse the clouds."
|
||||
SUNJAR="$BINDIR/../lib/sunshine.jar"
|
||||
PROJDIR="$BINDIR/.."
|
||||
if [[ ! $MVN_REPO ]]; then
|
||||
MVN_REPO="$HOME/.m2/repository"
|
||||
fi
|
||||
if [[ ! -d $MVN_REPO ]]; then
|
||||
MVN_REPO="/root/.m2/repository"
|
||||
fi
|
||||
if [[ ! -d $MVN_REPO ]]; then
|
||||
echo "Cannot find your Maven repository. Please set environment variable"
|
||||
echo "MVN_REPO to its full path and re-run."
|
||||
exit 1
|
||||
fi
|
||||
java -jar $SUNJAR server >/dev/null 2>&1 &
|
||||
sleep 5
|
||||
$BINDIR/ng sunshine load -l $PROJDIR -l $MVN_REPO
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue