expandurl-mastodon/build_manpage.sh
tastytea 64f78e0300
All checks were successful
the build was successful
Ported to mastodon-cpp 0.105.0.
2019-04-20 01:47:23 +02:00

14 lines
340 B
Bash
Executable File

#!/bin/sh
name="expandurl-mastodon"
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