summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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* $@