eead940d88fe31132ff55e241c7a8fee84f5a6a6
[sbcl.git] / doc / make-doc.sh
1 #!/bin/sh
2
3 # Where is Jade? (i.e. James Clark's implementation of DSSSL, or
4 # something offsprung)
5 if [ "" != "$JADE" ]; then
6     # The user has told us where to find jade, good.
7     echo using JADE=$JADE
8 elif which openjade > /dev/null; then
9     # OpenJade is the version of Jade which comes with OpenBSD 2.9, 
10     # and I started using it in sbcl-0.pre7.x. -- WHN
11     JADE=openjade
12 elif which jade > /dev/null; then
13     # I used the original Jade until sbcl-0.pre7.x. It might still
14     # work. -- WHN
15     JADE=jade
16 else
17     echo "can't find Jade, sorry"
18     exit 1
19 fi
20
21 # Since Jade has strange ideas about the name of the top level output
22 # file, use a symlink as a workaround to provide a reasonable entry
23 # point.
24 #
25 # (KLUDGE: Why does the output always come out in book1.htm? According
26 # to the docs of OpenJade 1.3, it should be coming out in
27 # user-manual.htm by default, I think. And it should respect the -o
28 # option. But experimentally that seems not to be. -- WHN 2002-01-15)
29 rm -f book1.htm
30 $JADE -t sgml -ihtml -d sbcl-html.dsl\#html user-manual.sgml
31 ln -sf book1.htm user-manual.html