changeset 83:3e5de539a676

super submission script!
author William Morgan <billjunk@mrgn.org>
date Mon, 28 Jul 2014 04:39:30 -0700
parents 4438054a183c
children 23d74104e515
files code/submission.sh
diffstat 1 files changed, 24 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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
 
-