diff --git a/doc/genmanpage.sh b/tools/genmanpage.sh similarity index 86% rename from doc/genmanpage.sh rename to tools/genmanpage.sh index acd0c7cc..d8b9d526 100755 --- a/doc/genmanpage.sh +++ b/tools/genmanpage.sh @@ -7,8 +7,9 @@ cd "$(dirname "$0")" date="$(date +"%B %Y")" version="$(awk '/#define KVZ_VERSION/ { print $3 }' ../src/global.h)" +manpage_file=../doc/kvazaar.1 -cat < kvazaar.1 +cat < $manpage_file .TH KVAZAAR "1" "$date" "kvazaar v$version" "User Commands" .SH NAME kvazaar \- open source HEVC encoder @@ -27,9 +28,8 @@ EOF s|^ ||g; s|-|\\-|g; s|, \\-\\-|\\fR, \\fB\\-\\-|g;' \ - >> kvazaar.1 + >> $manpage_file for s in Slices Wpp Tiles "Parallel processing" "Video Usability Information"; do - sed -i "s|^ ${s}:|.SS \"${s}:\"|g" kvazaar.1 + sed -i "s|^ ${s}:|.SS \"${s}:\"|g" $manpage_file done -