2016-02-04 05:41:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
LANG=C
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
date="$(date +"%B %Y")"
|
2022-04-28 12:32:26 +00:00
|
|
|
version="$(awk '/VERSION/ {print $2}' ../CMakeLists.txt)"
|
|
|
|
manpage_file=../doc/uvg266.1
|
2016-02-04 05:41:18 +00:00
|
|
|
|
2016-03-01 13:30:24 +00:00
|
|
|
cat <<EOF> $manpage_file
|
2022-04-28 12:32:26 +00:00
|
|
|
.TH UVG266 "1" "$date" "uvg266 v$version" "User Commands"
|
2016-02-04 05:41:18 +00:00
|
|
|
.SH NAME
|
2021-07-27 06:50:39 +00:00
|
|
|
uvg266 \- open source VVC encoder
|
2016-02-04 05:41:18 +00:00
|
|
|
.SH SYNOPSIS
|
2021-07-27 06:50:39 +00:00
|
|
|
\fBuvg266 \fR\-i <input> \-\-input\-res <width>x<height> \-o <output>
|
2016-02-04 05:41:18 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
EOF
|
|
|
|
|
2022-04-28 12:32:26 +00:00
|
|
|
../bin/uvg266 --help 2>&1 | tail -n+5 | head -n-4 | \
|
2016-02-05 14:16:18 +00:00
|
|
|
sed 's| : |\n|g;
|
|
|
|
s| :$||g;
|
2016-02-04 05:41:18 +00:00
|
|
|
s|^ --|.TP\n\\fB--|g;
|
2016-11-04 13:30:58 +00:00
|
|
|
s|^ -|.TP\n\\fB-|g;
|
|
|
|
s|^ ||g;
|
2016-02-04 05:41:18 +00:00
|
|
|
s|-|\\-|g;
|
|
|
|
s|, \\-\\-|\\fR, \\fB\\-\\-|g;' \
|
2016-03-01 13:30:24 +00:00
|
|
|
>> $manpage_file
|
2016-02-04 05:41:18 +00:00
|
|
|
|
2016-10-26 23:45:24 +00:00
|
|
|
for s in Required Presets Input Options "Video structure" "Compression tools" "Parallel processing" "Video Usability Information"; do
|
|
|
|
sed -i "s|^${s}:|.SS \"${s}:\"|g" $manpage_file
|
2016-02-04 05:41:18 +00:00
|
|
|
done
|