mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] configure_helper.py: also accept PTXDIST environment variable
@ 2019-04-25  6:38 Roland Hieber
  0 siblings, 0 replies; only message in thread
From: Roland Hieber @ 2019-04-25  6:38 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Having an uppercase variable feels more POSIXy, and some other tools
already accept the upper-case variant.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 scripts/configure_helper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/configure_helper.py b/scripts/configure_helper.py
index c1864a83bf81..565e5be49f5d 100755
--- a/scripts/configure_helper.py
+++ b/scripts/configure_helper.py
@@ -149,7 +149,7 @@ def abort(message):
 	exit(1)
 
 def ask_ptxdist(pkg):
-	ptxdist = os.environ.get("ptxdist", "ptxdist")
+	ptxdist = os.environ.get("PTXDIST", os.environ.get("ptxdist", "ptxdist"))
 	p = subprocess.Popen([ ptxdist, "-k", "make",
 		"/print-%s_DIR" % pkg,
 		"/print-%s_SUBDIR" % pkg,
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-25  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-25  6:38 [ptxdist] [PATCH] configure_helper.py: also accept PTXDIST environment variable Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox