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.
2019-01-25 04:03:30 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
name="compilescript"
|
|
|
|
|
|
|
|
if [ -n "${1}" ]; then
|
2019-10-01 09:10:08 +02:00
|
|
|
dir=$(dirname "${0}")
|
|
|
|
version=${1}
|
2019-01-25 04:03:30 +01:00
|
|
|
cp -vf "${dir}/${name}.1.adoc" .
|
2019-10-01 09:10:08 +02:00
|
|
|
sed -Ei "s/(Revision: +)[0-9]+\.[0-9]\.[0-9]/\1${version}/" "${name}.1.adoc"
|
2019-01-25 04:03:30 +01:00
|
|
|
a2x --doctype manpage --format manpage --no-xmllint "${name}.1.adoc"
|
|
|
|
else
|
|
|
|
echo "usage: ${0} VERSION" >&2
|
|
|
|
fi
|