2019-05-11 02:52:33 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
name="remwharead"
|
|
|
|
|
|
|
|
if [ -n "${1}" ]; then
|
2019-08-03 20:10:20 +02:00
|
|
|
dir=$(dirname "${0}")
|
2019-05-11 02:52:33 +02:00
|
|
|
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
|