Commit | Line | Data |
---|---|---|
9092f96a | 1 | #!/bin/sh - |
473fb73d | 2 | # |
9092f96a KB |
3 | # Copyright (c) 1988 Regents of the University of California. |
4 | # All rights reserved. The Berkeley software License Agreement | |
5 | # specifies the terms and conditions for redistribution. | |
473fb73d | 6 | # |
1c15e888 | 7 | # @(#)ching.sh 4.4 (Berkeley) 4/30/90 |
9092f96a KB |
8 | # |
9 | ||
91b7a9b0 KB |
10 | cd /usr/games |
11 | DIR=/usr/share/games/ching | |
473fb73d PK |
12 | case $1 in |
13 | [6-9]*) H=$1;shift;; | |
14 | esac | |
9092f96a | 15 | if test $H; then |
91b7a9b0 | 16 | ./ching.phx $H | nroff $* $DIR/macros - | ${PAGER-more} |
9092f96a | 17 | else |
91b7a9b0 | 18 | ./ching.cno > "/tmp/#$$" |
798963c9 | 19 | echo " " |
91b7a9b0 | 20 | ./ching.phx < "/tmp/#$$" | nroff $* $DIR/macros - | ${PAGER-more} |
798963c9 | 21 | rm "/tmp/#$$" |
473fb73d | 22 | fi |