]> granicus.if.org Git - docbook-dsssl/commitdiff
Makefile-only mechanism for grabbing a copy of the source for the
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 11 Mar 2006 18:27:31 +0000 (18:27 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 11 Mar 2006 18:27:31 +0000 (18:27 +0000)
Lesk "tbl" paper and generating plain-text and PDF output from it.

contrib/doc/michael.smith/tbl/Makefile [new file with mode: 0644]
contrib/doc/michael.smith/tbl/README [new file with mode: 0644]

diff --git a/contrib/doc/michael.smith/tbl/Makefile b/contrib/doc/michael.smith/tbl/Makefile
new file mode 100644 (file)
index 0000000..423914b
--- /dev/null
@@ -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 (file)
index 0000000..c678fbe
--- /dev/null
@@ -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".