This commit is contained in:
cgtboy1988 2020-01-08 14:38:55 -07:00 committed by GitHub
parent ffff2403f1
commit d117d2d906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 34 deletions

View File

@ -1,34 +0,0 @@
#!/bin/bash
workingDirectory=$1
if [ -z "${workingDirectory}" ] || [ "$1" == "-clean" ]; then
workingDirectory=$PWD
fi
if [ "$1" == "-clean" ] || [ "$2" == "-clean" ]; then
echo "Cleaning"
rm -rf "$workingDirectory/compiled-puzzles"
rm -rf "$workingDirectory/mothballs"
rm -rf "$workingDirectory/state"
exit
fi
echo "Working in directory $workingDirectory"
bash $workingDirectory/build.sh
mkdir $workingDirectory/compiled-puzzles
FILES=$workingDirectory/example-puzzles/*
#for f in $FILES
#do
# $workingDirectory/devel/package-puzzles.py $workingDirectory/compiled-puzzles $f
#done
#mkdir $workingDirectory/mothballs
#cp $workingDirectory/compiled-puzzles/* $workingDirectory/mothballs
mkdir $workingDirectory/state
sudo docker run --rm -it -p 8080:8080 -v $workingDirectory/state:/state -v $workingDirectory/mothballs:/mothballs dirtbags/moth