2011-06-29 14:48:31 +00:00
|
|
|
OPTS="-x .ut.rb -x .ts.rb -x samples -q"
|
2010-12-28 21:09:42 +00:00
|
|
|
BASE="$(dirname "$0")"
|
|
|
|
MSFDIR="${BASE}/.."
|
|
|
|
DOCDIR="${BASE}/api"
|
2011-02-23 22:13:53 +00:00
|
|
|
doc=$(which sdoc)
|
2010-12-28 21:09:42 +00:00
|
|
|
|
2011-02-23 22:13:53 +00:00
|
|
|
if [ -z $doc ]; then
|
|
|
|
doc=$(which rdoc)
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Using ${doc} for doc generation"
|
2010-12-28 21:09:42 +00:00
|
|
|
echo "Putting docs in ${DOCDIR}"
|
2009-06-06 16:53:35 +00:00
|
|
|
|
|
|
|
echo "Generating rex..."
|
2011-02-23 22:13:53 +00:00
|
|
|
$doc $OPTS -t "Rex Documentation" -o ${DOCDIR}/rex ${MSFDIR}/lib/rex
|
2009-06-06 16:53:35 +00:00
|
|
|
echo "Generating msfcore"
|
2011-02-23 22:13:53 +00:00
|
|
|
$doc $OPTS -t "Framework Core Documentation" -o ${DOCDIR}/msfcore ${MSFDIR}/lib/msf/core
|
2009-06-06 16:53:35 +00:00
|
|
|
echo "Generating msfbase"
|
2011-02-23 22:13:53 +00:00
|
|
|
$doc $OPTS -t "Framework Base Documentation" -o ${DOCDIR}/msfbase ${MSFDIR}/lib/msf/base
|
2009-06-06 16:53:35 +00:00
|
|
|
echo "Generating msfui"
|
2011-02-23 22:13:53 +00:00
|
|
|
$doc $OPTS -t "Framework UI Documentation" -o ${DOCDIR}/msfui ${MSFDIR}/lib/msf/ui
|