xref: /original-bsd/games/ching/ching.sh (revision 181f2284)
1#!/bin/sh -
2#
3# Copyright (c) 1983, 1988, 1993
4#	The Regents of the University of California.  All rights reserved.
5#
6# %sccs.include.proprietary.sh%
7#
8#	@(#)ching.sh	8.1 (Berkeley) 05/31/93
9#
10
11cd /usr/games
12DIR=/usr/share/games/ching
13case $1 in
14	[6-9]*)	H=$1;shift;;
15esac
16if test $H; then
17	./ching.phx $H | nroff $* $DIR/macros - | ${PAGER-more}
18else
19	./ching.cno > "/tmp/#$$"
20	echo "  "
21	./ching.phx < "/tmp/#$$" | nroff $* $DIR/macros - | ${PAGER-more}
22	rm "/tmp/#$$"
23fi
24