capitals in scripts

This commit is contained in:
Felix Van der Jeugt 2021-12-03 09:41:12 +01:00
parent c14f89bf6f
commit 4ed1792edd
No known key found for this signature in database
GPG Key ID: 58B209295023754D
2 changed files with 5 additions and 5 deletions

2
clean
View File

@ -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"

View File

@ -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