/usr/lib/auto-07p/cmds/@mn is in auto-07p 0.9.1+dfsg-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
VIEWERS="xpdf acroread evince gv"
MANUAL="$AUTO_DIR/doc/auto.pdf"
GOT_VIEWER="false"
for VIEWER in $VIEWERS; do
saveIFS=$IFS
IFS=":"
for d in $PATH; do
if test -f "$d/$VIEWER" && test -x "$d/$VIEWER"; then
$VIEWER $MANUAL &
GOT_VIEWER="true"
break
fi
done
IFS=$saveIFS
if test "$GOT_VIEWER" = "true"; then
break
fi
done
if test "$GOT_VIEWER" = "false"; then
echo "No suitable PDF viewer found (tried: $VIEWERS)"
fi
|