diff options
author | Siddhesh Poyarekar <siddhesh@gotplt.org> | 2020-08-20 08:43:46 +0530 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-20 10:39:56 -0700 |
commit | 6ca8bb18851a4838cf0a7b4f17363fc9116a7b85 (patch) | |
tree | 1aaae11922a7f13cfb2b84646103c7534ac6649f /build-aux/vcs-to-changelog.py | |
parent | 6d704d3a1f65cda7c11630cd914b4bc877ddf224 (diff) | |
download | gnulib-6ca8bb18851a4838cf0a7b4f17363fc9116a7b85.tar.gz |
Split ProjectQuirks out into its own file
ProjectQuirks is used by external quirks files and importing it from
vcs-to-changelog.py is broken since it was renamed to use hyphens. It
is cleaner to put it in its own file anyway.
* build-aux/vcstocl/projectquirks.py: A new file...
* build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
we move ProjectQuirks and import the file.
Diffstat (limited to 'build-aux/vcs-to-changelog.py')
-rwxr-xr-x | build-aux/vcs-to-changelog.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/build-aux/vcs-to-changelog.py b/build-aux/vcs-to-changelog.py index bf4bc7cf64..edc6128a79 100755 --- a/build-aux/vcs-to-changelog.py +++ b/build-aux/vcs-to-changelog.py @@ -55,29 +55,10 @@ import argparse from vcstocl.misc_util import * from vcstocl import frontend_c from vcstocl.vcs_git import * +from vcstocl.projectquirks import ProjectQuirks debug = DebugUtil(False) -class ProjectQuirks: - # This is a list of regex substitutions for C/C++ macros that are known to - # break parsing of the C programs. Each member of this list is a dict with - # the key 'orig' having the regex and 'sub' having the substitution of the - # regex. - MACRO_QUIRKS = [] - - # This is a list of macro definitions that are extensively used and are - # known to break parsing due to some characteristic, mainly the lack of a - # semicolon at the end. - C_MACROS = [] - - # The repo type, defaults to git. - repo = 'git' - - # List of files to ignore either because they are not needed (such as the - # ChangeLog) or because they are non-parseable. For example, glibc has a - # header file that is only assembly code, which breaks the C parser. - IGNORE_LIST = ['ChangeLog'] - sys.path.append('/'.join([os.path.dirname(os.path.realpath(__file__)), 'vcstocl'])) |