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

27 lines
773 B
Bash

#!/usr/bin/env bash
source "$(dirname "$0")/../common.sh"
cd $PWNDBG_ABS_PATH
# Extract from sources all the information necessary to build
# the documentation. Do this from each debugger.
export PWNDBG_DOCGEN_DBGNAME="gdb"
$UV_RUN_DOCS pwndbg -nx --batch \
-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 \
|| exit 1
export PWNDBG_DOCGEN_DBGNAME="lldb"
{
$UV_RUN_DOCS pwndbg-lldb << 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