--- texi2dvi 2008-02-20 02:27:19.000000000 -0500 +++ texi2dvi 2008-03-10 16:10:06.000000000 -0400 @@ -99,6 +99,8 @@ -t, --command=CMD insert CMD in copy of input file or --texinfo=CMD multiple values accumulate --translate-file=FILE use given charset translation file for TeX + --viewer=CMD invoke CMD on the rendered DVI or PDF file + after processing is complete Build modes: --build=MODE specify the treatment of auxiliary files [$build_mode] @@ -172,6 +174,7 @@ verb=false # true for verbose mode translate_file= # name of charset translation file recode_from= # if not empty, recode from this encoding to @documentencoding +viewer= # if not empty, run on rendered file after processing completes orig_pwd=`pwd` @@ -1416,6 +1419,7 @@ --tidy) build_mode=tidy;; -v | --vers*) echo "$version"; exit 0;; -V | --verb*) verb=true;; + --viewer ) shift; viewer="$1";; --) # What remains are not options. shift while test x"$1" != x"$arg_sep"; do @@ -1654,6 +1658,9 @@ # Compile the document. compile cleanup + if [ -n "$viewer" ]; then + ($viewer $out_name < /dev/null &) # background it and forget it + fi ;; mostly-clean)