adding asciiref gen hook
This commit is contained in:
parent
90b88d82e8
commit
1437639338
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"
|
7177
ref/ascii/ascii.html
7177
ref/ascii/ascii.html
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user