From 0053f1a862cd0c2f359a4d12f0fdd35b17d18906 Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Tue, 5 Aug 2014 09:00:31 +0200 Subject: [PATCH] tableprinter: manpage is now installed into /usr/share/man/man1 --- ucw/doc/Makefile | 10 +++++++++- ucw/doc/{table-user.txt => ucw-tableprinter.txt} | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) rename ucw/doc/{table-user.txt => ucw-tableprinter.txt} (98%) diff --git a/ucw/doc/Makefile b/ucw/doc/Makefile index fc38637e..0795b84b 100644 --- a/ucw/doc/Makefile +++ b/ucw/doc/Makefile @@ -6,6 +6,12 @@ UCW_DOCS=basics log fastbuf index config configure install basecode hash docsys UCW_INDEX=$(o)/ucw/doc/def_index.html UCW_DOCS_HTML=$(addprefix $(o)/ucw/doc/,$(addsuffix .html,$(UCW_DOCS))) +UCW_SRC_MANPAGES=ucw-tableprinter +UCW_MANPAGES=$(addprefix $(o)/ucw/doc/,$(addsuffix .1,$(UCW_SRC_MANPAGES))) + +$(o)/ucw/doc/ucw-tableprinter.1: ucw/doc/ucw-tableprinter.txt + a2x -f manpage -D $(o)/ucw/doc/ $< + $(UCW_INDEX): DOC_HEAD=$(s)/ucw/doc/def_index.txt $(UCW_INDEX): DOC_LIST=$(patsubst %,$(o)/ucw/doc/%.deflist,$(UCW_DOCS)) $(UCW_INDEX) $(UCW_DOCS_HTML): DOC_MODULE=ucw @@ -19,6 +25,8 @@ INSTALL_TARGETS+=install-libucw-docs endif .PHONY: install-libucw-docs -install-libucw-docs: $(UCW_INDEX) $(UCW_DOCS_HTML) +install-libucw-docs: $(UCW_INDEX) $(UCW_DOCS_HTML) $(UCW_MANPAGES) install -d -m 755 $(DESTDIR)$(INSTALL_DOC_DIR)/ucw/ install -m 644 $^ $(DESTDIR)$(INSTALL_DOC_DIR)/ucw/ + install -d -m 755 $(DESTDIR)$(INSTALL_MAN_DIR)/man1 + install -m 644 $(UCW_MANPAGES) $(DESTDIR)$(INSTALL_MAN_DIR)/man1 \ No newline at end of file diff --git a/ucw/doc/table-user.txt b/ucw/doc/ucw-tableprinter.txt similarity index 98% rename from ucw/doc/table-user.txt rename to ucw/doc/ucw-tableprinter.txt index 4f9b64a0..d8c0165a 100644 --- a/ucw/doc/table-user.txt +++ b/ucw/doc/ucw-tableprinter.txt @@ -49,7 +49,7 @@ Column order (`cols` option) has the following format: := [ ',' ] -Where is a comma-separated list of options +Where is a comma-separated list of options. Column delimiter option (`col-delim`) can be an arbitrary string. The cell format option `cells` can have one of the possible three values: -- 2.39.2