3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-24 03:57:54 +00:00

Updated manual

This commit is contained in:
Clifford Wolf 2013-09-15 11:41:05 +02:00
parent 2c9bd23801
commit 647c23b7b7
3 changed files with 172 additions and 20 deletions

View file

@ -1,22 +1,59 @@
#!/bin/bash
fast_mode=false
update_mode=false
set -- $(getopt fu "$@")
while [ $# -gt 0 ]; do
case "$1" in
-f)
fast_mode=true
;;
-u)
update_mode=true
;;
--)
shift
break
;;
-*)
echo "$0: error - unrecognized option $1" 1>&2
exit 1
;;
*)
break
esac
shift
done
PDFTEX_OPT="-shell-escape -halt-on-error"
md5sum *.aux *.bbl *.blg > autoloop.old
if $update_mode; then
make -C ..
../yosys -p 'help -write-tex-command-reference-manual'
fi
if ! $fast_mode; then
md5sum *.aux *.bbl *.blg > autoloop.old
fi
set -ex
pdflatex $PDFTEX_OPT manual.tex
bibtex manual.aux
bibtex weblink.aux
while
md5sum *.aux *.bbl *.blg > autoloop.new
! cmp autoloop.old autoloop.new
do
cp autoloop.new autoloop.old
pdflatex $PDFTEX_OPT manual.tex
done
if ! $fast_mode; then
bibtex manual.aux
bibtex weblink.aux
rm -f autoloop.old
rm -f autoloop.new
while
md5sum *.aux *.bbl *.blg > autoloop.new
! cmp autoloop.old autoloop.new
do
cp autoloop.new autoloop.old
pdflatex $PDFTEX_OPT manual.tex
done
rm -f autoloop.old
rm -f autoloop.new
fi