mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
25 lines
594 B
Batchfile
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 |