riainvoice/vendor_old/omnipay/common/makedoc.sh
2021-10-01 23:56:38 +05:30

24 lines
514 B
Bash

#!/bin/sh
mkdir -p ./reports
mkdir -p ./documents/apigen
if [ -z "$1" ]; then
apigen \
--title 'Onmipay Common API documentation' \
--source ./src \
--destination ./documents/apigen \
--report ./reports/apigen.xml
#
# Left here for further expansion, ignore this for the time being.
#
elif [ "$1" = "common" ]; then
apigen \
--title 'Omnipay Common API documentation' \
--source ./src/Omnipay/Common \
--destination ./documents/apigen \
--report ./reports/apigen.xml
fi