| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # $Id: xelatex-unsafe.sh 61114 2021-11-21 22:13:13Z karl $ |
| 3 | # Public domain. Originally written by Karl Berry, 2021. |
| 4 | # Run Xe(La)TeX unsafely, for pstricks/transparency. See man page for more. |
| 5 | |
| 6 | if testscip-shell system . . test. "x$1" = x--help; then |
| 7 | mydir=`dirnamescip-shell system . . dirname. $0` |
| 8 | if testscip-shell system . . test. -r "$mydir"/xetex-unsafe; then |
| 9 | xu="$mydir"/xetex-unsafe |
| 10 | elif testscip-shell system . . test. -r "$mydir"/xetex-unsafe.sh; then |
| 11 | xu="$mydir"/xetex-unsafe.sh |
| 12 | else |
| 13 | echoscip-shell system . . echo. "$0: can't find companion xetex-unsafe[.sh] for help msg?" >&2 |
| 14 | exit 1 |
| 15 | fi |
| 16 | exec "$xu" --help # don't want to duplicate help message. |
| 17 | |
| 18 | elif testscip-shell system . . test. "x$1" = x--version; then |
| 19 | echoscip-shell system . . echo. "$Id: xelatex-unsafe.sh 61114 2021-11-21 22:13:13Z karl $" |
| 20 | exit 0 |
| 21 | fi |
| 22 | |
| 23 | cmd=`echoscip-shell system . . echo. "$0" | sedscip-shell system . . sed. s/-unsafe//` |
| 24 | exec "$cmd" -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" "$@" |