Add scripts for building EDSL scripts
This commit is contained in:
parent
b46f7563db
commit
6ec26a5769
1
Exercises/exercise-6/.gitignore
vendored
Normal file
1
Exercises/exercise-6/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.txt
|
7
Exercises/exercise-6/build.sh
Executable file
7
Exercises/exercise-6/build.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
for shape in "shape1" "shape2" "shape3" "iShape" "disc50"
|
||||
do
|
||||
pushd "${BASH_SOURCE%/*}" > /dev/null
|
||||
ghc ./Shapes.hs -e "render 100 100 $shape"
|
||||
mv shape.txt "$shape.txt"
|
||||
popd > /dev/null
|
||||
done
|
10
Exercises/exercise-6/watch.sh
Executable file
10
Exercises/exercise-6/watch.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
pushd "${BASH_SOURCE%/*}" > /dev/null
|
||||
|
||||
nix-shell -p entr bash --run \
|
||||
"ls *.hs | \
|
||||
entr -rs ' \
|
||||
./build.sh
|
||||
' \
|
||||
"
|
||||
|
||||
popd > /dev/null
|
Loading…
Reference in a new issue