diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-04-26 00:00:00 +0000 |
---|---|---|
committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-04-26 13:00:19 +0200 |
commit | eb4e0fc8f9e278e81a3191f5e30610aaf4aaa762 (patch) | |
tree | a46142828e4a1b892f5b013d65ffa8727c80ee00 /Makefile-giscanner.am | |
parent | cf758608312525fb1826027757412f2b62e77f7f (diff) | |
download | gobject-introspection-eb4e0fc8f9e278e81a3191f5e30610aaf4aaa762.tar.gz |
Add --version option to Python based tools.
Version file is generated at build time and stored as _version.py.
To support running uninstalled tools, a fallback version is included as
well. Example output of `--version` option:
```
$ for t in g-ir-{annotation-tool,scanner,doc-tool}; do $t --version; done
g-ir-annotation-tool 1.57.1
g-ir-scanner 1.57.1
g-ir-doc-tool 1.57.1
```
Diffstat (limited to 'Makefile-giscanner.am')
-rw-r--r-- | Makefile-giscanner.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am index 107e98d3..271b55dd 100644 --- a/Makefile-giscanner.am +++ b/Makefile-giscanner.am @@ -27,6 +27,7 @@ pkgpyexecdir = $(pkglibdir)/giscanner pkgpyexec_LTLIBRARIES = _giscanner.la pkgpyexec_PYTHON = \ giscanner/__init__.py \ + giscanner/_version.py \ giscanner/annotationmain.py \ giscanner/annotationparser.py \ giscanner/ast.py \ |