Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!im4u!milano!mcc-pp!ables From: ables@mcc-pp.UUCP Newsgroups: net.sources.bugs Subject: Re: PostScript Calendar Message-ID: <2743@mcc-pp.UUCP> Date: Mon, 9-Mar-87 12:26:55 EST Article-I.D.: mcc-pp.2743 Posted: Mon Mar 9 12:26:55 1987 Date-Received: Tue, 10-Mar-87 05:49:24 EST References: <388@unirot.UUCP> Organization: MCC, Austin, TX Lines: 86 Keywords: PostScript Summary: shell script I took the postscript text posted, and added the following cshell script text to the top of a file containing the postscript stuff: #!/bin/csh -f # # From: patwood@unirot.UUCP (Patrick Wood) # Newsgroups: net.sources # Subject: PostScript Calendar # Date: 7 Mar 87 18:43:51 GMT # Organization: Public Access Unix, Piscataway, NJ # # The following is a PostScript program to print calendars. It doesn't # work on or before 1752. # # Shell stuff added 3/9/87 by King Ables # set printer="" top: if ($#argv > 0) then switch ("$argv[1]") case -*: set printer="$argv[1]" shift argv goto top case *: if ($?month) then set year="$argv[1]" else if ($?year) then echo "usage: $0 [-Pprinter] month year" exit 1 else set month="$argv[1]" endif shift argv goto top endsw endif if ($?year) then else echo "usage: $0 [-Pprinter] month year" exit 1 endif lpr $printer <