gitea2rss/build_manpage.sh

14 lines
329 B
Bash
Raw Normal View History

2019-04-17 00:17:26 +02:00
#!/bin/sh
name="gitea2rss"
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