From 7f03b53626b2cf88238e0b5fb070dd211486d02f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 24 Oct 2013 23:06:45 +0200 Subject: more flexible info file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- .gitignore | 1 + Makefile | 5 ++++- info/gpp.texinfo | 14 +++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e7bc08a..c2165a3 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ __pycache__/ /gpp *.info *.gz +*.install diff --git a/Makefile b/Makefile index 8299bd5..f624f49 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,13 @@ doc: info .PHONY: info info: gpp.info.gz -%.info.gz: info/%.texinfo +%.info.gz: info/%.texinfo.install makeinfo "$<" gzip -9 -f "$*.info" +info/%.texinfo.install: info/%.texinfo + $(PY3) gpp -s '?' -D GPP=$(COMMAND) < "$<" > "$@" + gpp: src/gpp.py VERSION=$(VERSION) SHEBANG="$(SHEBANG)" $(PY3) "$<" -u -u < "$<" > "$@" diff --git a/info/gpp.texinfo b/info/gpp.texinfo index b9ee4cd..a758920 100644 --- a/info/gpp.texinfo +++ b/info/gpp.texinfo @@ -2,7 +2,7 @@ @c %**start of header @setfilename gpp.info -@settitle gpp +@settitle ?{GPP} @afourpaper @documentencoding UTF-8 @documentlanguage en @@ -12,7 +12,7 @@ @dircategory Development @direntry -* gpp: (gpp). Bash based preprocessor for anything +* ?{GPP}: (?{GPP}). Bash based preprocessor for anything @end direntry @@ -50,9 +50,9 @@ Texts. A copy of the license is included in the section entitled @menu -* Overview:: Brief overview of @command{gpp}. -* Invoking:: Invoking @command{gpp}. -* Syntax:: Syntax of @command{gpp}. +* Overview:: Brief overview of @command{?{GPP}}. +* Invoking:: Invoking @command{?{GPP}}. +* Syntax:: Syntax of @command{?{GPP}}. * GNU Free Documentation License:: Copying and sharing this manual. @end menu @@ -93,8 +93,8 @@ lines. @node Invoking @chapter Invoking -Syntax for invoking @command{gpp}: -@command{gpp [options...]} +Syntax for invoking @command{?{GPP}}: +@command {?{GPP} [options...]} Short options must not be joined and the value for a flag must be in a -- cgit v1.2.3-70-g09d2