2000-12-02 14:16:08 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
2000-12-09 09:30:54 -07:00
|
|
|
function die
|
|
|
|
{
|
2000-12-31 18:17:13 -06:00
|
|
|
echo
|
2000-12-09 09:30:54 -07:00
|
|
|
echo $1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2000-12-31 18:17:13 -06:00
|
|
|
echo -n "Running makeinfo..."
|
2000-12-02 14:16:08 -06:00
|
|
|
makeinfo --no-split -I . manual.texi
|
|
|
|
|
2000-12-31 18:17:13 -06:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
die "Manual has errors - fix before you commit"
|
|
|
|
else
|
|
|
|
echo " Looks good."
|
|
|
|
fi
|
2000-12-09 09:30:54 -07:00
|
|
|
|
2000-12-31 18:17:13 -06:00
|
|
|
|
|
|
|
echo -n "Running texi2html..."
|
2000-12-02 14:16:08 -06:00
|
|
|
/usr/bin/perl ./Support/texi2html -iso -number manual.texi
|
|
|
|
|
2000-12-31 18:17:13 -06:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
die "Manual has errors - fix before you commit"
|
|
|
|
else
|
|
|
|
echo " Looks good."
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo -n "Running texi2dvi..."
|
|
|
|
texi2dvi --batch --quiet manual.texi
|
|
|
|
|
|
|
|
if [ $? != 0 ]; then
|
|
|
|
die "Manual has errors - fix before you commit"
|
|
|
|
else
|
|
|
|
echo " Looks good."
|
|
|
|
fi
|
|
|
|
|
2000-12-09 09:30:54 -07:00
|
|
|
|
|
|
|
[ -z $BROWSER ] && BROWSER=netscape
|
|
|
|
|
2000-12-31 18:17:13 -06:00
|
|
|
echo
|
2000-12-02 14:16:08 -06:00
|
|
|
echo
|
|
|
|
echo "Please examine your modifications in \`manual.html'."
|
2000-12-31 18:17:13 -06:00
|
|
|
echo
|
|
|
|
echo "If you would like to use a different browser, set the 'BROWSER' environment"
|
|
|
|
echo "variable."
|
|
|
|
echo
|
2000-12-09 09:30:54 -07:00
|
|
|
|
2000-12-31 18:17:13 -06:00
|
|
|
$BROWSER file://`pwd`/manual_toc.html &
|