1
1
mirror of https://schlomp.space/tastytea/hashboot synced 2024-11-08 15:30:48 +01:00
hashboot/build_manpage.sh

13 lines
359 B
Bash
Raw Normal View History

2019-02-24 15:29:11 +01:00
#!/bin/sh
if [ -f "hashboot.1.adoc" ]; then
name="hashboot"
version="$(grep VERSION hashboot | head -n1 | cut -d\" -f2)"
dir="$(dirname ${0})"
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 "hashboot.1.adoc not found." >&2
fi