[gtk-doc] mkhtml: add --output-dir param
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkhtml: add --output-dir param
- Date: Thu, 5 Sep 2019 18:34:40 +0000 (UTC)
commit dec245bb9531cc77d243c81350f2197f69666070
Author: Stefan Sauer <ensonic users sf net>
Date: Thu Sep 5 20:33:52 2019 +0200
mkhtml: add --output-dir param
This gives build systems more flexibility.
gtkdoc-mkhtml2.in | 2 ++
gtkdoc/mkhtml2.py | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtkdoc-mkhtml2.in b/gtkdoc-mkhtml2.in
index 14fc3bc..fef2962 100755
--- a/gtkdoc-mkhtml2.in
+++ b/gtkdoc-mkhtml2.in
@@ -33,6 +33,8 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='gtkdoc-mkhtml version %s - generate documentation in html format' % config.version)
parser.add_argument('--version', action='version', version=config.version)
+ parser.add_argument('--output-dir', default='.',
+ help='The directory where the results are stored')
parser.add_argument('--path', default=[], action='append',
help='Extra source directories')
parser.add_argument('--extra-dir', default=[], action='append',
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index 9152850..0c84483 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -1848,6 +1848,8 @@ def run(options):
module = options.args[0]
document = options.args[1]
+ output_dir = options.output_dir or os.getcmd()
+
# TODO: pass options.extra_dir
- sys.exit(main(module, document, os.getcwd(), options.uninstalled, options.src_lang,
+ sys.exit(main(module, document, output_dir, options.uninstalled, options.src_lang,
options.path))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]