BSD 4_3_Reno release
[unix-history] / usr / games / ching
CommitLineData
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
10cd /usr/games
11DIR=/usr/share/games/ching
473fb73d
PK
12case $1 in
13 [6-9]*) H=$1;shift;;
14esac
9092f96a 15if test $H; then
91b7a9b0 16 ./ching.phx $H | nroff $* $DIR/macros - | ${PAGER-more}
9092f96a 17else
91b7a9b0 18 ./ching.cno > "/tmp/#$$"
798963c9 19 echo " "
91b7a9b0 20 ./ching.phx < "/tmp/#$$" | nroff $* $DIR/macros - | ${PAGER-more}
798963c9 21 rm "/tmp/#$$"
473fb73d 22fi