capitals in scripts
This commit is contained in:
parent
c14f89bf6f
commit
4ed1792edd
2
clean
2
clean
@ -5,4 +5,4 @@ part="$2"
|
||||
day="$(printf '%02d' "$day")"
|
||||
|
||||
rm -f ./run ./luac.out
|
||||
rm -f "Day${1}/Part${2}.hi" "Day${1}/Part${2}.o"
|
||||
rm -f "day${1}/part${2}.hi" "day${1}/part${2}.o"
|
||||
|
8
prepare
8
prepare
@ -4,11 +4,11 @@ part="$2"
|
||||
|
||||
day="$(printf '%02d' "$day")"
|
||||
|
||||
if test -f "Day${day}/Part${part}.lua"; then
|
||||
luac -o luac.out "Day${day}/Part${part}.lua"
|
||||
if test -f "day${day}/part${part}.lua"; then
|
||||
luac -o luac.out "day${day}/part${part}.lua"
|
||||
printf '#!/bin/sh\nlua luac.out "$@"\n' > run
|
||||
chmod u+x run
|
||||
elif test -f "Day${day}/Part${part}.hs"; then
|
||||
elif test -f "day${day}/part${part}.hs"; then
|
||||
#stack build
|
||||
stack ghc -- -O3 "Day${day}/Part${part}.hs" -o run
|
||||
stack ghc -- -O3 "day${day}/part${part}.hs" -o run
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user