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 aba0205..0000000 Binary files a/jqt.1.gz and /dev/null differ