Make test-make-manual more portable.

parent 4842d3da
...@@ -10,7 +10,7 @@ if [ -z $BROWSER ]; then ...@@ -10,7 +10,7 @@ if [ -z $BROWSER ]; then
echo "BROWSER not set, using $BROWSER" echo "BROWSER not set, using $BROWSER"
fi fi
function die die ()
{ {
echo echo
echo $1 echo $1
...@@ -18,7 +18,7 @@ function die ...@@ -18,7 +18,7 @@ function die
exit 1 exit 1
} }
function cleanup cleanup ()
{ {
echo "Cleaning up..." echo "Cleaning up..."
if [ $needed_flags ]; then if [ $needed_flags ]; then
...@@ -113,11 +113,12 @@ fi ...@@ -113,11 +113,12 @@ fi
echo -n "Running texi2dvi..." echo -n "Running texi2dvi..."
texi2dvi --batch --quiet manual.texi texi2dvi --batch manual.texi > texi2dvi.out
if [ $? != 0 ]; then if [ $? != 0 ]; then
die "Manual has errors - fix before you commit" die "Manual has errors - fix before you commit (saved in texi2dvi.out)"
else else
rm texi2dvi.out
echo " Looks good." echo " Looks good."
fi fi
...@@ -132,5 +133,5 @@ echo ...@@ -132,5 +133,5 @@ echo
$BROWSER file:`pwd`/manual_toc.html $BROWSER file:`pwd`/manual_toc.html
echo "-- Press Enter to Continue --" echo "-- Press Enter to Continue --"
read read junk
cleanup cleanup
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment