date and time created 89/05/17 13:28:35 by bostic
[unix-history] / usr / src / games / ching / ching.sh
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#
9092f96a
KB
7# @(#)ching.sh 4.3 (Berkeley) %G%
8#
9
10cd /usr/games/ching.d
473fb73d
PK
11case $1 in
12 [6-9]*) H=$1;shift;;
13esac
9092f96a
KB
14if test $H; then
15 ./phx $H | nroff $* macros - | ${PAGER-more}
16else
17 ./cno > "/tmp/#$$"
798963c9 18 echo " "
9092f96a 19 ./phx < "/tmp/#$$" | nroff $* macros - | ${PAGER-more}
798963c9 20 rm "/tmp/#$$"
473fb73d 21fi