summaryrefslogtreecommitdiff
path: root/Buildscr.test
blob: 8b2e425aff3343f3dd1af57d5f46c2684e9017ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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* $@