Files
chipsec-chipsec/docs/create_manual.cmd
T
2017-04-16 10:31:17 -10:00

25 lines
594 B
Batchfile

rem @echo off
set TARGET=%1
echo "************************ BUILDING DOCUMENTATION ******************************"
echo "** Target: %TARGET%
echo "******************************************************************************"
set PYTHONPATH=%TARGET%
pushd %TARGET%
call python chipsec_main.py -h > %TARGET%\sphinx\options.rst
popd
pushd %TARGET%\sphinx
call sphinx-apidoc -e -f -T -o modules ..
call python removeStrRst.py
:: create chipsec-manual.pdf
call sphinx-build -b pdf -D pdf_stylesheets=sstylesheet . ..
:: remove sphinx folder
pushd %TARGET%
rmdir /s /q %TARGET%\.doctrees
popd