# HG changeset patch # User William Morgan # Date 1406547570 25200 # Node ID 3e5de539a676e650385e375ec86088e710aa72a1 # Parent 4438054a183cde539d51af6f96ffe552d425c5b0 super submission script! diff -r 4438054a183c -r 3e5de539a676 code/submission.sh --- a/code/submission.sh Mon Jul 28 03:25:05 2014 -0700 +++ b/code/submission.sh Mon Jul 28 04:39:30 2014 -0700 @@ -2,14 +2,33 @@ # To be run from the code subfolder. -#Compiles the lambdaman.gcc program and places it in the solution folder +echo "Clean all outputs before we start..." +rm -rf ../solution +rm -rf ../../submission.tar.gz_CHECK +rm ../../submission.tar.gz + +echo "Check that compiler binary files exist..." +ls ./lmc +ls ./gqc + +echo "Compile the lambdaman.gcc program into solutions folder..." mkdir -p ../solution ./lmc dotScanner.lm > ../solution/lambdaman.gcc -#Prepares a tar file for submission. -tar -cvzf ../../submission.tar.gz --exclude-vcs ../../icfp2014 +echo "Compile two of our ghost programs into solutions folder..." +./gqc ghost0.gq > ../solution/ghost0.ghc +./gqc ghost1.gq > ../solution/ghost1.ghc + +echo "Prepare a tar file for submission without binaries, hg, or *~ files..." +tar -czf ../../submission.tar.gz --exclude-vcs --exclude='gqc' --exclude='lmc' --exclude='gcc' --exclude='*~' ../ -#Prints the sha1 hash of the tar to standard out. +echo "Untar into folder for sanity checks..." +mkdir -p ../../submission.tar.gz_CHECK +tar -xzf ../../submission.tar.gz -C ../../submission.tar.gz_CHECK +ls -haRl ../../submission.tar.gz_CHECK +echo "Does the size look right?" +echo "All the files there?" + +echo "Here is the hash:" sha1sum ../../submission.tar.gz -