DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [DistroKit] [PATCH 1/2] scripts: p-all: allow overriding ptxdist via $PTXDIST
Date: Wed, 13 Mar 2019 11:33:45 +0100	[thread overview]
Message-ID: <20190313103346.14444-1-rhi@pengutronix.de> (raw)

This actually makes it possible to call specific versions of PTXdist,
e.g. when migrating to a specific version.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 scripts/p-all | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/p-all b/scripts/p-all
index 238a6a7..bdef601 100755
--- a/scripts/p-all
+++ b/scripts/p-all
@@ -1,6 +1,13 @@
 #!/bin/sh
 # Run ptxdist on all platformconfigs
+if [ -z "$PTXDIST" ]; then
+	PTXDIST=ptxdist
+else
+	tput setaf 3 # yellow
+	echo Note: using PTXDIST=$PTXDIST
+	tput sgr 0   # back to normal
+fi
 PLATFORMS="v7a v8a rpi"
 for p in $PLATFORMS; do
-	ptxdist --platformconfig=configs/platform-${p}/platformconfig "$@"
+	$PTXDIST --platformconfig=configs/platform-${p}/platformconfig "$@"
 done
-- 
2.20.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

             reply	other threads:[~2019-03-13 10:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-13 10:33 Roland Hieber [this message]
2019-03-13 10:33 ` [DistroKit] [PATCH 2/2] ptxdist: version bump 2019.03.0 → 2019.03.1 Roland Hieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190313103346.14444-1-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox