luajit does support hashbangs
This commit is contained in:
parent
fad5da2e27
commit
0582895825
14 changed files with 23 additions and 7 deletions
3
prepare
3
prepare
|
@ -5,7 +5,8 @@ part="$2"
|
|||
day="$(printf '%02d' "$day")"
|
||||
|
||||
if test -f "day${day}/part${part}.lua"; then
|
||||
luajit -v >/dev/null
|
||||
/usr/bin/env luajit -v >/dev/null
|
||||
cp "day${day}/part${part}.lua" run
|
||||
elif test -f "day${day}/part${part}.hs"; then
|
||||
#stack build
|
||||
stack ghc -- -O3 "day${day}/part${part}.hs" -o run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue