remwharead/man/build_manpage.sh
tastytea b4e845a352
Some checks failed
continuous-integration/drone/push Build is failing
Updated CMake recipes and changed file structure.
2019-08-03 22:27:08 +02:00

14 lines
330 B
Bash
Executable File

#!/bin/sh
name="remwharead"
if [ -n "${1}" ]; then
dir=$(dirname "${0}")
version=${1}
cp -vf "${dir}/${name}.1.adoc" .
sed -Ei "s/(Revision: +)[0-9]+\.[0-9]\.[0-9]/\1${version}/" "${name}.1.adoc"
a2x --doctype manpage --format manpage --no-xmllint "${name}.1.adoc"
else
echo "usage: ${0} VERSION" >&2
fi