[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-build-common] branch master updated: add '--variant' to set insta
From: |
gnunet |
Subject: |
[taler-build-common] branch master updated: add '--variant' to set installation directory. |
Date: |
Sat, 14 Dec 2019 14:44:03 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository build-common.
The following commit(s) were added to refs/heads/master by this push:
new 6d8322d add '--variant' to set installation directory.
6d8322d is described below
commit 6d8322d57cb8f9ded3528b456a47d93b37be00e2
Author: ng0 <address@hidden>
AuthorDate: Sat Dec 14 13:43:13 2019 +0000
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()
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-build-common] branch master updated: add '--variant' to set installation directory.,
gnunet <=