From a8a18c1d1f9f46e46a0dcedc6caaabfaf2d9dd33 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 19 Mar 2015 18:25:25 +0000 Subject: 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). --- Buildscr.test | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Buildscr.test (limited to 'Buildscr.test') 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* $@ -- cgit v1.1