aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-24 23:06:45 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-24 23:06:45 +0200
commit7f03b53626b2cf88238e0b5fb070dd211486d02f (patch)
treea22a100be982418cb3a1924a96226cc27d506c16
parentgpp conflicts with other packages (diff)
downloadgpp-1.1.tar.gz
gpp-1.1.tar.bz2
gpp-1.1.tar.xz
more flexible info file1.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--.gitignore1
-rw-r--r--Makefile5
-rw-r--r--info/gpp.texinfo14
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