Skip to content

Commit

Permalink
Generate man pages when install
Browse files Browse the repository at this point in the history
  • Loading branch information
fadado committed Aug 26, 2016
1 parent 1d91f29 commit 15746aa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
tests/generated/*.jqe
tests/generated/*.jqs
tests/generated/*.txt
# man pages
jqt.1.gz
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions bin/jqt
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Binary file removed jqt.1.gz
Binary file not shown.

0 comments on commit 15746aa

Please sign in to comment.