diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-07-03 19:56:16 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-07-03 20:12:30 +0200 |
commit | bc84dd1eab78e96ccc7dabd7561cfaf57f165951 (patch) | |
tree | 9b6c88827525687ec9204f33807c6535f8d5cb9b | |
parent | c0b94c538d7bee2a81991d64f44b4b2ad255091e (diff) | |
download | mk-bc84dd1eab78e96ccc7dabd7561cfaf57f165951.tar.gz |
Move mk into separate directory
-rw-r--r-- | Makefile | 18 | ||||
-rw-r--r-- | README | 9 | ||||
-rwxr-xr-x | list/list | 4 | ||||
-rw-r--r-- | mk/HACKING.pdf (renamed from HACKING.pdf) | bin | 24407 -> 24550 bytes | |||
-rw-r--r-- | mk/HACKING.t (renamed from HACKING.t) | 0 | ||||
-rw-r--r-- | mk/Makefile | 14 | ||||
-rw-r--r-- | mk/README.pdf (renamed from README.pdf) | bin | 63479 -> 63483 bytes | |||
-rw-r--r-- | mk/README.t (renamed from README.t) | 2 | ||||
-rw-r--r-- | mk/k.tmac (renamed from k.tmac) | 0 | ||||
-rw-r--r-- | mk/kx.tmac (renamed from kx.tmac) | 0 | ||||
-rw-r--r-- | mk/t/Makefile (renamed from t/Makefile) | 0 | ||||
-rw-r--r-- | mk/t/k.tmac (renamed from t/k.tmac) | 0 | ||||
-rw-r--r-- | mk/t/k.tmac.orig (renamed from t/k.tmac.orig) | 0 | ||||
-rw-r--r-- | mk/t/ne.t (renamed from t/ne.t) | 0 | ||||
-rw-r--r-- | mk/t/t.tmac (renamed from t/t.tmac) | 0 | ||||
-rw-r--r-- | toc/README.pdf | bin | 28572 -> 28669 bytes | |||
-rw-r--r-- | toc/README.t | 4 | ||||
-rw-r--r-- | toc/example.pdf | bin | 9369 -> 9369 bytes | |||
-rwxr-xr-x | toc/toc | 4 |
19 files changed, 35 insertions, 20 deletions
@@ -2,22 +2,10 @@ TMACDIR ?= /usr/share/tmac BINDIR ?= /usr/local/bin MANDIR ?= /usr/local/man -TROFF ?= troff -PDFROFF ?= troff | dpost | ps2pdf - - -all: README.pdf HACKING.pdf - install: - install -m 644 k.tmac t/toc.tmac $(TMACDIR) + install -m 644 mk/k.tmac t/toc.tmac $(TMACDIR) install -m 644 toc/toc.1 list/list.1 $(MANDIR)/man1 install toc/toc list/list $(BINDIR) -HACKING.pdf: HACKING.t k.tmac - perl -pe '$$_=`$$_` if s/^\!//' HACKING.t |\ - LC_ALL=en_US.UTF-8\ - $(PDFROFF) > HACKING.pdf - -README.pdf: README.t k.tmac - TROFFONTS=/usr/pkg/share/fonts/X11/TTF/\ - LC_ALL=en_US.UTF-8\ - <README.t toc/toc list/list -p.l \| $(PDFROFF) > README.pdf +install-extra: + install -m 644 mk/kx.tmac $(TMACDIR) @@ -1,8 +1,8 @@ --- Overview --- -This repository can be divided into three parts: +This repository is divided into three subdirectories: - * mk (top directory) + * mk * toc * list @@ -29,3 +29,8 @@ You may want to set TMACDIR, BINDIR and MANDIR before installing. single Perl script: list -- escapes text between .l( and .l) + +--- Note --- + +Permission to use, copy, modify and/or distribute this software +for any purpose with or without fee is hereby granted. @@ -2,6 +2,10 @@ # list -- escape code listing for troff +# Permission to use, copy, modify and/or +# distribute this software for any purpose +# with or without fee is hereby granted. + use Getopt::Std; BEGIN { getopt('Ep:s:') } diff --git a/HACKING.pdf b/mk/HACKING.pdf Binary files differindex 33ca978..04e2b86 100644 --- a/HACKING.pdf +++ b/mk/HACKING.pdf diff --git a/mk/Makefile b/mk/Makefile new file mode 100644 index 0000000..069eab1 --- /dev/null +++ b/mk/Makefile @@ -0,0 +1,14 @@ +TROFF ?= troff +PDFROFF ?= troff | dpost | ps2pdf - + +all: README.pdf HACKING.pdf + +HACKING.pdf: HACKING.t k.tmac + perl -pe '$$_=`$$_` if s/^\!//' HACKING.t |\ + LC_ALL=en_US.UTF-8\ + $(PDFROFF) > HACKING.pdf + +README.pdf: README.t k.tmac + TROFFONTS=/usr/pkg/share/fonts/X11/TTF/\ + LC_ALL=en_US.UTF-8\ + <README.t ../toc/toc ../list/list -p.l \| $(PDFROFF) > README.pdf diff --git a/README.pdf b/mk/README.pdf Binary files differindex 177a8ed..9ab89af 100644 --- a/README.pdf +++ b/mk/README.pdf @@ -1,6 +1,6 @@ .so k.tmac .so kx.tmac -.so toc/toc.tmac +.so ../toc/toc.tmac .mediasize letter .fp 0 M DejaVuSansMono ttf .hw Eng-lish diff --git a/t/Makefile b/mk/t/Makefile index e040b7a..e040b7a 100644 --- a/t/Makefile +++ b/mk/t/Makefile diff --git a/t/k.tmac.orig b/mk/t/k.tmac.orig index ff5ef66..ff5ef66 100644 --- a/t/k.tmac.orig +++ b/mk/t/k.tmac.orig diff --git a/toc/README.pdf b/toc/README.pdf Binary files differindex 317cbc4..f29e5eb 100644 --- a/toc/README.pdf +++ b/toc/README.pdf diff --git a/toc/README.t b/toc/README.t index 919b300..a350e81 100644 --- a/toc/README.t +++ b/toc/README.t @@ -1,5 +1,5 @@ -.so ../k.tmac -.so ../kx.tmac +.so ../mk/k.tmac +.so ../mk/kx.tmac .so toc.tmac . .t diff --git a/toc/example.pdf b/toc/example.pdf Binary files differindex 1615176..2a568a5 100644 --- a/toc/example.pdf +++ b/toc/example.pdf @@ -2,6 +2,10 @@ # toc -- run troff in three passes +# Permission to use, copy, modify and/or +# distribute this software for any purpose +# with or without fee is hereby granted. + usage() { echo "usage: $0 [cmd ... \|] <troff> [arg ...]" 1>&2 echo "(input should be given on stdin)" 1>&2 |