17 lines
226 B
Bash
Executable File
17 lines
226 B
Bash
Executable File
#!/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"
|