From: Michael Smith Date: Sat, 11 Mar 2006 18:27:31 +0000 (+0000) Subject: Makefile-only mechanism for grabbing a copy of the source for the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f3c02bfe6bcd8c005cf3e5c8bb21482d8867be5;p=docbook-dsssl Makefile-only mechanism for grabbing a copy of the source for the Lesk "tbl" paper and generating plain-text and PDF output from it. --- diff --git a/contrib/doc/michael.smith/tbl/Makefile b/contrib/doc/michael.smith/tbl/Makefile new file mode 100644 index 000000000..423914b0b --- /dev/null +++ b/contrib/doc/michael.smith/tbl/Makefile @@ -0,0 +1,49 @@ +# $Id$ +# +TBLSOURCE=http://cm.bell-labs.com/7thEdMan/vol2/tbl +WGET=wget +WGETFLAGS= + +GROFF=groff +GROFFFLAGS= + +SED=sed +SEDFLAGS= + +PS2PDF=ps2pdf +PS2PDFFLAGS= + +all: tbl.txt tbl.pdf + +tbl: + $(WGET) $(WGETFLAGS) $(TBLSOURCE) + +tbl.txt: tbl + cat $< \ + | $(SED) $(SEDFLAGS) 's/^\.TM.*$$//' \ + | $(SED) $(SEDFLAGS) 's/^gfont roman*$$//' \ + | $(SED) $(SEDFLAGS) 's/\.TL/.nr LL 66n\n.pl 1200i\n.nr HY 0\n.na\n.TL/' \ + | $(SED) $(SEDFLAGS) 's/\.po +3i/.po +4.4i/' \ + | GROFF_NO_SGR=1 $(GROFF) $(GROFFFLAGS) -e -t -ms -Tascii - \ + | $(SED) $(SEDFLAGS) 's/T\x08O/!/g' \ + | col -bx | cat -s \ + | $(SED) $(SEDFLAGS) 's/``/"/g' \ + | $(SED) $(SEDFLAGS) "s/\`/'/g" \ + | $(SED) $(SEDFLAGS) "s/''/\"/g" \ + > $@ + +tbl.pdf: tbl + cat $< \ + | $(SED) $(SEDFLAGS) 's/^\.TM.*$$//' \ + | $(SED) $(SEDFLAGS) 's/^gfont roman*$$//' \ + | $(SED) $(SEDFLAGS) 's/\.TL/.nr HY 0\n.na\n.TL/' \ + | $(GROFF) $(GROFFFLAGS) -e -t -ms - \ + | $(PS2PDF) $(PS2PDFFLAGS) - \ + > $@ + +clean: + $(RM) tbl + $(RM) tbl.txt + $(RM) tbl.pdf + +# vim: number diff --git a/contrib/doc/michael.smith/tbl/README b/contrib/doc/michael.smith/tbl/README new file mode 100644 index 000000000..c678fbe92 --- /dev/null +++ b/contrib/doc/michael.smith/tbl/README @@ -0,0 +1,20 @@ +$Id$ + +The source for the M. E. Lesk paper "Tbl - A Program to Format +Tables" and for all other parts of the Unix Seventh Edition Manual +are still under copyright and so cannot be freely distributed. See +the following location: + + http://cm.bell-labs.com/7thEdMan/ + +The copyright statement there reads: + + All of this material was copyrighted in 1979 by Bell Telephone + Laboratories, Incorporated. Currently the copyright is held + jointly by Lucent Technologies Inc. and AT&T Corporation. All + rights reserved. + +But the troff sources for manual are available online at the +location above. So the makefile is this directory is provided as +a convenience for downloading and building plain-text and PDF +output from the source for "Tbl - A Program to Format Tables".