Add build- and clean-all.sh scripts for complete builds.
authorW. Trevor King <wking@drexel.edu>
Thu, 7 Oct 2010 13:01:00 +0000 (09:01 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 7 Oct 2010 13:01:00 +0000 (09:01 -0400)
_script/build-all.sh [new file with mode: 0755]
_script/clean-all.sh [new file with mode: 0755]

diff --git a/_script/build-all.sh b/_script/build-all.sh
new file mode 100755 (executable)
index 0000000..f2ba2fd
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+ROOT=$(git rev-parse --show-cdup . | head -n1)
+if [ -z "$ROOT" ]; then
+    ROOT="./"
+fi
+
+build.sh "$ROOT"
+
+# html_toc.py does not search outside a TOC tree, so you need to start
+# it at each additional TOC root.  Run
+#   grep -r 'TableOfContents' | grep -v '/content/'
+# to get a list of files containing TOCs.
+html_toc.py "$ROOT"content/
+html_toc.py "$ROOT"assignments/archive/logistic_cuda/
diff --git a/_script/clean-all.sh b/_script/clean-all.sh
new file mode 100755 (executable)
index 0000000..96dc72a
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+ROOT=$(git rev-parse --show-cdup . | head -n1)
+if [ -z "$ROOT" ]; then
+    ROOT="./"
+fi
+
+clean.sh "$ROOT"
+
+# html_toc.py does not search outside a TOC tree, so you need to start
+# it at each additional TOC root.  Run
+#   grep -r 'TableOfContents' | grep -v '/content/'
+# to get a list of files containing TOCs.
+html_toc.py --clean "$ROOT"content/
+html_toc.py --clean "$ROOT"assignments/archive/logistic_cuda/