about summary refs log tree commit diff
path: root/llvm_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-31 11:21:52 +0200
committerGitHub <noreply@github.com>2020-08-31 11:21:52 +0200
commit7ee255cbcf5a4bcf0e61b70024d9fa3259bc79e7 (patch)
tree5f25d67cbb28728e755438fedd0be3db5004d843 /llvm_mode
parent961ddfd7f8ff9f40bd36e7552bf838e554904a0c (diff)
parentb0b2a158915a70211042ce2962d70f9106d216eb (diff)
downloadafl++-7ee255cbcf5a4bcf0e61b70024d9fa3259bc79e7.tar.gz
Merge pull request #529 from rhertzog/manpages
Manual pages related changes
Diffstat (limited to 'llvm_mode')
-rw-r--r--llvm_mode/GNUmakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm_mode/GNUmakefile b/llvm_mode/GNUmakefile
index 769583b2..71df5a6f 100644
--- a/llvm_mode/GNUmakefile
+++ b/llvm_mode/GNUmakefile
@@ -24,7 +24,7 @@ HELPER_PATH ?= $(PREFIX)/lib/afl
 BIN_PATH    ?= $(PREFIX)/bin
 DOC_PATH    ?= $(PREFIX)/share/doc/afl
 MISC_PATH   ?= $(PREFIX)/share/afl
-MAN_PATH    ?= $(PREFIX)/man/man8
+MAN_PATH    ?= $(PREFIX)/share/man/man8
 
 VERSION     = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2)
 
@@ -442,7 +442,8 @@ vpath  % ..
 %.8: %
 	@echo .TH $* 8 `date "+%Y-%m-%d"` "afl++" > ../$@
 	@echo .SH NAME >> ../$@
-	@echo .B $* >> ../$@
+	@echo -n ".B $* \- " >> ../$@
+	@./$* -h 2>&1 | head -n 1 | sed -e "s/$$(printf '\e')[^m]*m//g" >> ../$@
 	@echo >> ../$@
 	@echo .SH SYNOPSIS >> ../$@
 	@../$* -h 2>&1 | head -n 3 | tail -n 1 | sed 's/^\.\///' >> ../$@