xref: /original-bsd/games/ching/ching.sh (revision a9392a99)
1#!/bin/sh -
2#
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.
6#
7#	@(#)ching.sh	4.4 (Berkeley) 04/30/90
8#
9
10cd /usr/games
11DIR=/usr/share/games/ching
12case $1 in
13	[6-9]*)	H=$1;shift;;
14esac
15if test $H; then
16	./ching.phx $H | nroff $* $DIR/macros - | ${PAGER-more}
17else
18	./ching.cno > "/tmp/#$$"
19	echo "  "
20	./ching.phx < "/tmp/#$$" | nroff $* $DIR/macros - | ${PAGER-more}
21	rm "/tmp/#$$"
22fi
23