summaryrefslogtreecommitdiff
path: root/Docs/Support
diff options
context:
space:
mode:
authormwagner@evoq.home.mwagner.org <>2000-12-31 18:17:13 -0600
committermwagner@evoq.home.mwagner.org <>2000-12-31 18:17:13 -0600
commit72a1acce92ca9261ee33209f253402a04cbb2c14 (patch)
tree5629c78d71b84de2970d725efac34ebf3c8c5456 /Docs/Support
parent5a4d0ff5a820da337547a6db4609466372287e02 (diff)
downloadmariadb-git-72a1acce92ca9261ee33209f253402a04cbb2c14.tar.gz
test-make-manual Cleaned up and added texi2dvi test.
Diffstat (limited to 'Docs/Support')
-rwxr-xr-xDocs/Support/test-make-manual43
1 files changed, 31 insertions, 12 deletions
diff --git a/Docs/Support/test-make-manual b/Docs/Support/test-make-manual
index cc304b7a58a..72f4fdac10d 100755
--- a/Docs/Support/test-make-manual
+++ b/Docs/Support/test-make-manual
@@ -2,30 +2,49 @@
function die
{
+ echo
echo $1
exit 1
}
-echo
-echo "|---- Running makeinfo ----|"
+echo -n "Running makeinfo..."
makeinfo --no-split -I . manual.texi
-[ $? != 0 ] && die "Manual has errors - fix before you commit"
+if [ $? != 0 ]; then
+ die "Manual has errors - fix before you commit"
+else
+ echo " Looks good."
+fi
-echo
-echo "|---- Running texi2html ----|"
+
+echo -n "Running texi2html..."
/usr/bin/perl ./Support/texi2html -iso -number manual.texi
-[ $? != 0 ] && die "Manual has errors - fix before you commit"
+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
+
[ -z $BROWSER ] && BROWSER=netscape
echo
+echo
echo "Please examine your modifications in \`manual.html'."
-echo "For your convenience, I will show you the manual in $BROWSER"
-echo "If you would like to use a different browser, set BROWSER enviroment\
- variable"
-echo "If this is a GUI browser, to get your shell prompt back, close the
- window"
+echo
+echo "If you would like to use a different browser, set the 'BROWSER' environment"
+echo "variable."
+echo
-$BROWSER file://`pwd`/manual_toc.html
+$BROWSER file://`pwd`/manual_toc.html &