From 3b178213967e7dbeb5894cd4ce593cab6334aa5f Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Thu, 16 Jun 2022 11:14:42 +0300 Subject: [PATCH] Fix tools/genmanpage.sh and the doc/uvg266.1 it generates --- doc/uvg266.1 | 27 +-------------------------- tools/genmanpage.sh | 2 +- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/doc/uvg266.1 b/doc/uvg266.1 index 54ed920f..7d6947b3 100644 --- a/doc/uvg266.1 +++ b/doc/uvg266.1 @@ -1,29 +1,4 @@ -.TH UVG266 "1" "June 2022" "uvg266 v3.12) -0.2.3 -${PROJECT_VERSION}-${GIT_TAG_SHORT}) -" -"${CMAKE_C_COMPILER_ID} -LESS -"VS") -LESS -"VS2013") -LESS -"VS2015") -LESS -"VS2017") -LESS -"VS2019") -"VS2022") -"${UVG_COMPILER_VERSION}") -tar -"Make -${CMAKE_SOURCE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.gz -tar -cd -echo -echo -${CMAKE_SOURCE_DIR}/${PROJECT_NAME}-${PROJECT_VERSION}.tar.gz -"Checking" "User Commands" +.TH UVG266 "1" "June 2022" "uvg266 v0.2.3" "User Commands" .SH NAME uvg266 \- open source VVC encoder .SH SYNOPSIS diff --git a/tools/genmanpage.sh b/tools/genmanpage.sh index 7db037c0..b909285d 100755 --- a/tools/genmanpage.sh +++ b/tools/genmanpage.sh @@ -6,7 +6,7 @@ set -e cd "$(dirname "$0")" date="$(date +"%B %Y")" -version="$(awk '/VERSION/ {print $2}' ../CMakeLists.txt)" +version="$(awk 'match($0,/VERSION [0-9]\.[0-9]\.[0-9]/) {print $2}' ../CMakeLists.txt)" manpage_file=../doc/uvg266.1 cat < $manpage_file