Debian Codegraph @

07p/cmds/@mn

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 VIEWERS="xpdf acroread evince gv"
3 MANUAL="$AUTO_DIR/doc/auto.pdf"
4 GOT_VIEWER="false"
5 for VIEWER in $VIEWERS; do
6 saveIFS=$IFS
7 IFS=":"
8 for d in $PATH; do
9 if testscip-shell system . . test. -f "$d/$VIEWER" && testscip-shell system . . test. -x "$d/$VIEWER"; then
10 $VIEWER $MANUAL &
11 GOT_VIEWER="true"
12 break
13 fi
14 done
15 IFS=$saveIFS
16 if testscip-shell system . . test. "$GOT_VIEWER" = "true"; then
17 break
18 fi
19 done
20 if testscip-shell system . . test. "$GOT_VIEWER" = "false"; then
21 echoscip-shell system . . echo. "No suitable PDF viewer found (tried: $VIEWERS)"
22 fi