From 6d8322d57cb8f9ded3528b456a47d93b37be00e2 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 14 Dec 2019 13:43:13 +0000 Subject: add '--variant' to set installation directory. possibly a bad naming choice, but it enables varying directories for stage vs www. --- talerbuildconfig.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/talerbuildconfig.py b/talerbuildconfig.py index da063b9..b444513 100644 --- a/talerbuildconfig.py +++ b/talerbuildconfig.py @@ -77,6 +77,10 @@ class BuildConfig: """If enabled, process the --prefix argument.""" self.prefix_enabled = True + def enable_variant(self): + """If enable, process the --variant argument.""" + self.variant_enabled = False + def enable_configmk(self): """If enabled, output the config.mk makefile fragment.""" self.configmk_enabled = True @@ -90,6 +94,13 @@ class BuildConfig: default="/usr/local", help="Directory prefix for installation", ) + if self.variant_enabled: + parser.add_argument( + "--variant", + type=str, + default="", + help="Directory for installation", + ) for tool in self.tools: tool.args(parser) args = self.args = parser.parse_args() -- cgit v1.2.3