winfsp/tools/gendoc/apidoc.sh
2018-01-11 17:25:17 -08:00

18 lines
426 B
Bash

#!/bin/bash
cd $(dirname "$0")/../..
PRETTYDOC="$PWD/../prettydoc/prettydoc"
if [[ $# -eq 0 ]]; then
echo "usage: $(basename $0) {asciidoc|html}" 1>&2
exit 1
fi
"$PRETTYDOC" -f $1 -t -H=--outer-names-only -o doc inc/winfsp/winfsp.h inc/winfsp/launch.h
if [[ "$1" == "asciidoc" ]]; then
mv doc/winfsp.h.asciidoc doc/WinFsp-API-winfsp.h.asciidoc
mv doc/launch.h.asciidoc doc/WinFsp-API-launch.h.asciidoc
fi