xref: /original-bsd/games/ching/ching.sh (revision bafc759a)
1#!/bin/sh -
2#
3# Copyright (c) 1983, 1988 The Regents of the University of California.
4# All rights reserved.
5#
6# %sccs.include.proprietary.sh%
7#
8#	@(#)ching.sh	4.5 (Berkeley) 04/08/91
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