Slightly better logging for font loading
[notion/jeffpc.git] / utils / ion-runinxterm
blobfc16dacac8ccee6b9fa2046e9809cffe659ce3ee
1 #!/bin/sh
3 test "$XTERMCMD" || XTERMCMD="xterm"
5 title=""
6 wait=""
8 while test $# -ge 0; do
9 if test "$1" = "--"; then
10 shift
11 break
12 elif test "$1" = "-phase2"; then
13 shift
14 "$@" && test "$wait" = "" || {
15 echo "Press enter..."
16 read nothing
18 exit
19 elif test "$1" = "-T"; then
20 if test $# -lt 2; then
21 echo error
22 exit 0
24 title="$2"
25 shift 2
26 elif test "$1" = "-w"; then
27 wait="$1"
28 shift
29 else
30 break
32 done
34 if test $# -lt 1; then
35 echo error
36 exit 0
39 if test "$title" = ""; then
40 title="$*"
43 exec $XTERMCMD -T "$title" -e $0 $wait -phase2 "$@"