From 15746aae2cc9e277433fcfde10d35b492793d0af Mon Sep 17 00:00:00 2001 From: Joan Josep Ordinas Rosa Date: Fri, 26 Aug 2016 18:00:46 +0200 Subject: [PATCH] Generate man pages when install --- .gitignore | 2 ++ Makefile | 3 ++- bin/jqt | 10 +++++----- jqt.1.gz | Bin 1327 -> 0 bytes 4 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 jqt.1.gz diff --git a/.gitignore b/.gitignore index fc8bb37..74a26fc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ tests/generated/*.jqe tests/generated/*.jqs tests/generated/*.txt +# man pages +jqt.1.gz diff --git a/Makefile b/Makefile index 87b4564..188e934 100644 --- a/Makefile +++ b/Makefile @@ -97,11 +97,12 @@ all: check .PHONY: clean clobber install uninstall clean: - rm -f tests/generated/* + rm -f tests/generated/* jqt.1.gz clobber: clean install: + [[ -e jqt.1.gz ]] || { cd docs && make ../jqt.1.gz; } test -d $(bindir) || $(SUDO) mkdir --verbose --parents $(bindir) test -d $(datadir)/$(project) || $(SUDO) mkdir --verbose --parents $(datadir)/$(project) test -d $(mandir)/man1 || $(SUDO) mkdir --verbose --parents $(mandir)/man1 diff --git a/bin/jqt b/bin/jqt index 593cd7d..dd94a74 100755 --- a/bin/jqt +++ b/bin/jqt @@ -148,11 +148,11 @@ function expand_json +sSSS '"' '"' '\' # JSON string ) local -r -a predefined=( - -D amp='&' - -D apos="'" - -D gt='>' - -D lt='<' - -D quot='"' + -Damp='&' + -Dapos="'" + -Dgt='>' + -Dlt='<' + -Dquot='"' ) gpp --nostdinc \ --warninglevel 2 \ diff --git a/jqt.1.gz b/jqt.1.gz deleted file mode 100644 index aba0205a871e7e46ca0e4725233667e796a80311..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1327 zcmV+~17-`114O01iITr(34*@#w?% z^mv8Z2qodD{jq&S>)Sh6bAvHF;2JFEMaC@x%2Y@^VD0%3F1q6ZYfqve!;M@0RxN0WS+Towwg37)KR}Yd|e6+x24A3yQX0ozBaGFTx5FA!o)2*tj?3GXs3s6fkR#KxY@ z$G(`lF^TQhjf-oqONORYyC|ey=L}h)T>sy)FOds)udWv%2cn zDt>yc=%;Yry*Rt0w(G-O$k+TV*i_Tqxn=2;TvZY9D8j;_QjHJ|lA3yWuI_Qa0s9VK zce)0tdDRTJGtVo4hjQ1+#F~EEIkh*MZ+Iqt4fBDY${Y=SuF|4tB=B1* z>GQVIz~XGf=MHe7h!Jykquk!~#f@w@wP@aZ*;?R__>1!f{b>4yH& zlhd(rJX+M-(28i9dgq&=Yo@*4^6>O}dH8Mn==n(9Wc(fO{w53t&^@0|p2H@HTOZzS lE800wtzSa3QPjl>Dv=$a1G?=UydBUd>`zDDPh}bn008W4myG}b