This repository has been archived on 2019-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
compilescript/build_manpage.sh
tastytea eb0bcaf535
All checks were successful
the build was successful
Added manpage
2019-01-25 04:06:41 +01:00

13 lines
310 B
Bash
Executable File

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