diff options
author | Fred Drake <fdrake@acm.org> | 1998-10-27 21:59:03 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-10-27 21:59:03 (GMT) |
commit | 566b6d5b5932750d65a532e0644f17bfa4327bbc (patch) | |
tree | 69052b64632fb389551af388a1ffcbcc3a55d434 /Doc | |
parent | 1bbc03199961d776ace09d58a808172b65e86780 (diff) | |
download | cpython-566b6d5b5932750d65a532e0644f17bfa4327bbc.zip cpython-566b6d5b5932750d65a532e0644f17bfa4327bbc.tar.gz cpython-566b6d5b5932750d65a532e0644f17bfa4327bbc.tar.bz2 |
Support the use of bibtex. This is transparent to the user.
Switch from bash to ksh, in the hope that more systems support it (one
report of a site without an available bash).
Diffstat (limited to 'Doc')
-rwxr-xr-x | Doc/tools/mkhowto.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/tools/mkhowto.sh b/Doc/tools/mkhowto.sh index 8fadb03..cd85ef0 100755 --- a/Doc/tools/mkhowto.sh +++ b/Doc/tools/mkhowto.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env bash +#! /usr/bin/env ksh # This script may be invoked by naming it directly or via a shell alias, # but NOT through a symbolic link. Perhaps a future version will allow @@ -107,6 +107,12 @@ use_latex() { makeindex $MYFILE.idx $MYDIR/indfix.py $MYFILE.ind fi + if [ `grep -c '^\\\\bibdata{' $MYFILE.aux` -ne 0 ] ; then + USE_BIBTEX=true + bibtex $MYFILE + else + USE_BIBTEX='' + fi if [ -f $MYFILE.syn ] ; then # This hack is due to a bug with the module synopsis support that # causes the last module synopsis to be written out twice in @@ -127,6 +133,9 @@ use_latex() { if [ -f $MYFILE.syn ] ; then uniq $MYFILE.syn >TEMP.syn && mv TEMP.syn $MYFILE.syn || exit $? fi + if [ "$USE_BIBTEX" ] ; then + bibtex $MYFILE + fi $MYLATEX $MYFILE || exit $? } @@ -160,6 +169,8 @@ cleanup() { fi rm -rf $1.temp-html rm -f $1/IMG* $1/*.pl $1/WARNINGS $1/index.dat $1/modindex.dat + # bibtex stuff + rm -f $1.bbl $1.blg } parse_option() { |