summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2015-03-19 18:25:25 +0000
committerSimon Tatham <anakin@pobox.com>2015-03-19 18:25:25 +0000
commita8a18c1d1f9f46e46a0dcedc6caaabfaf2d9dd33 (patch)
treea393c2ea9f7e866a426d2493621521fbac982aca
parent0a72bbbdf4b9ff119587782009839440a4869dad (diff)
downloadhalibut-a8a18c1d1f9f46e46a0dcedc6caaabfaf2d9dd33.zip
halibut-a8a18c1d1f9f46e46a0dcedc6caaabfaf2d9dd33.tar.gz
halibut-a8a18c1d1f9f46e46a0dcedc6caaabfaf2d9dd33.tar.bz2
halibut-a8a18c1d1f9f46e46a0dcedc6caaabfaf2d9dd33.tar.xz
New build script for testing purposes.
'bob -s Buildscr.test' builds Halibut, runs it over inputs/test.but to produce all the supported output formats, and delivers them all into the output directory. Including Windows HTML Help, for which it has to do a special run of the HTML back end with extra options and then get a Windows box to run hhc (hence this having to be a Buildscr).
-rw-r--r--Buildscr.test31
1 files changed, 31 insertions, 0 deletions
diff --git a/Buildscr.test b/Buildscr.test
new file mode 100644
index 0000000..8b2e425
--- /dev/null
+++ b/Buildscr.test
@@ -0,0 +1,31 @@
+# -*- sh -*-
+# Build script to build a test file in all Halibut formats.
+
+module halibut
+
+# Build a local binary of Halibut.
+in halibut do make
+
+# Run it on the standard test input file. This generates most outputs.
+in halibut do ./build/halibut inputs/test.but
+
+# Run it again with lots of extra options, to generate HTML Help
+# Compiler input.
+in halibut do mkdir htmlhelp
+in halibut/htmlhelp do ../build/halibut --html ../inputs/test.but -Chtml-leaf-level:infinite -Chtml-leaf-contains-contents:false -Chtml-suppress-navlinks:true -Chtml-suppress-address:true -Chtml-contents-filename:index.html -Chtml-template-filename:%k.html -Chtml-template-fragment:%k -Chtml-mshtmlhelp-chm:output.chm -Chtml-mshtmlhelp-project:output.hhp -Chtml-mshtmlhelp-contents:output.hhc -Chtml-mshtmlhelp-index:output.hhk -Chtml-body-end:
+
+# Delegate to Windows to compile the HTML Help file.
+delegate windows
+ in halibut/htmlhelp do hhc output.hhp; test -f output.chm
+ return halibut/htmlhelp/output.chm
+enddelegate
+
+deliver halibut/output.txt $@
+deliver halibut/*.html $@
+deliver halibut/output.hlp $@
+deliver halibut/output.cnt $@
+deliver halibut/htmlhelp/output.chm $@
+deliver halibut/output.1 $@
+deliver halibut/output.ps $@
+deliver halibut/output.pdf $@
+deliver halibut/output.info* $@