You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/scripts/_docs/extract-all-docs.sh

23 lines
758 B
Bash

#!/bin/sh
# Extract from sources all the information necessary to build
# the documentation. Do this from each debugger.
export PWNDBG_DOCGEN_DBGNAME="gdb"
uv run --group docs gdb --batch -nx -ix ./gdbinit.py \
-iex "set exception-verbose on" \
-ix ./scripts/_docs/extract_command_docs.py \
-ix ./scripts/_docs/extract_configuration_docs.py \
-ix ./scripts/_docs/extract_function_docs.py \
-nx || exit 1
export PWNDBG_DOCGEN_DBGNAME="lldb"
{
uv run --group docs --extra lldb python pwndbg-lldb.py << EOF
set show-tips off
command script import ./scripts/_docs/extract_command_docs.py
command script import ./scripts/_docs/extract_configuration_docs.py
command script import ./scripts/_docs/extract_function_docs.py
EOF
} || exit 2