SXXXXXXX_CppPythonDebug/tools
VALLONGOL c93ef640e5 add
2025-11-12 13:41:22 +01:00
..
README.md add 2025-11-12 13:41:22 +01:00
update_dumper_version.py add 2025-11-12 13:41:22 +01:00

tools/update_dumper_version.py

This helper updates the DUMPER_VERSION placeholder in cpp_python_debug/core/gdb_dumper.py.

Usage examples:

1) Use version from package file

python tools/update_dumper_version.py

2) Force a version and commit the change

python tools/update_dumper_version.py --version 1.2.3 --commit

3) If you prefer a git pre-commit hook, add the following to .git/hooks/pre-commit

#!/bin/sh python tools/update_dumper_version.py || exit 1

Note: Git hooks are not versioned automatically; you can place an example hook in tools/hooks/pre-commit.example and ask contributors to copy it to .git/hooks/pre-commit.