]> git.ipfire.org Git - thirdparty/gcc.git/commit
contrib/mklog.py: Add main function
authorAlex Coplan <alex.coplan@arm.com>
Thu, 19 Jun 2025 13:44:06 +0000 (14:44 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Thu, 26 Jun 2025 14:42:44 +0000 (15:42 +0100)
commitca8ea1d23e8b6798b6eb8c018957b25aa6f0db95
tree105b947a788531c11b1323ad528cde23fa84d2bf
parent1e69c5655894ab3cbeb4431a5b3daff211d3c4e1
contrib/mklog.py: Add main function

This adds a main() function to mklog.py (like e.g. check_GNU_style.py
has), which makes it easier to import and invoke from another python
script.  This is useful when using a wrapper script to set up the python
environment.

Smoke tested by using the modified mklog.py to generate the ChangeLog
for this patch.

contrib/ChangeLog:

* mklog.py (main): New.
contrib/mklog.py