17 lines
226 B
Plaintext
17 lines
226 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
origdir="${PWD}"
|
||
|
docsdir="${PWD}/ref/ascii/"
|
||
|
|
||
|
if ! command -v asciidoctor &> /dev/null;
|
||
|
then
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
cd "${docsdir}"
|
||
|
|
||
|
asciidoctor -o ascii.html ascii.adoc
|
||
|
|
||
|
cd ${origdir}
|
||
|
git add "${docsdir}/ascii.html"
|