pwd -s | set a :
/bin/if x$a != xafroff.dir /bin/goto wrongdir
as -o hytab.o hytab.s
as -o t.o t.s
/bin/if x$1 = x /bin/goto usage
/bin/if x$1 != xnroff -a x$1 != xtroff -a x$1 != xvroff /bin/goto usage
/bin/goto x$1
: xnroff
/bin/cc -c -DNROFF *.c ntroff.dir/*.c nroff.dir/*.c
ldroff
/bin/cpall *.o nroff.o.dir
/bin/rm *.o
/bin/exit
: xtroff
/bin/cc -c *.c ntroff.dir/*.c troff.dir/*.c
ldroff
/bin/cpall *.o troff.o.dir
/bin/rm *.o
/bin/exit
: xvroff
cc -c *.c vroff.dir/*.c
ldroff
/bin/cpall *.o vroff.o.dir
/bin/rm *.o
/bin/exit
: wrongdir
/bin/echo -e "You must be in the afroff.dir directory."
: usage
/bin/echo -e "USAGE: mkroff [ nroff troff vroff ]"
