Convert gendocs.sh to use rake yard

bug/bundler_fix
Tod Beardsley 2013-12-18 15:53:09 -06:00
parent 8dfa2e6963
commit 718111429b
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 1 additions and 15 deletions

View File

@ -1,15 +1 @@
OPTS="-x .ut.rb -x .ts.rb -x samples -q"
BASE="$(dirname "$0")"
MSFDIR="${BASE}/.."
DOCDIR="${BASE}/api"
doc=$(which sdoc)
if [ -z $doc ]; then
doc=$(which rdoc)
fi
echo "Using ${doc} for doc generation"
echo "Putting docs in ${DOCDIR}"
$doc $OPTS -t "Metasploit Documentation" -o ${DOCDIR} ${MSFDIR}/lib/rex ${MSFDIR}/lib/msf
rake yard