adding asciiref gen hook
This commit is contained in:
16
.githooks/pre-commit/01_asciiref_gen
Normal file
16
.githooks/pre-commit/01_asciiref_gen
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user