mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bastian Krause <bst@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bastian Krause <bst@pengutronix.de>
Subject: [ptxdist] [PATCH v3 03/19] ptxd_lib_template: allow default url/suffix in ptxd_template_read_url
Date: Tue, 22 Sep 2020 16:14:18 +0200	[thread overview]
Message-ID: <20200922141434.8544-3-bst@pengutronix.de> (raw)
In-Reply-To: <20200922141434.8544-1-bst@pengutronix.de>

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
No previous version.
---
 scripts/lib/ptxd_lib_template.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
index 5fdb805eb..59c2a073e 100644
--- a/scripts/lib/ptxd_lib_template.sh
+++ b/scripts/lib/ptxd_lib_template.sh
@@ -85,11 +85,16 @@ ptxd_template_read_version() {
     fi
 }
 export -f ptxd_template_read_version
-
+#
+# Read URL of basedir and suffix from user input
+#
+# $1 default URL of basedir (optional)
+# $2 default suffix (optional)
+#
 ptxd_template_read_url() {
     if [ -z "${ptxd_template_have_existing}" ]; then
-	ptxd_template_read "enter URL of basedir" URL
-	ptxd_template_read "enter suffix" SUFFIX
+	ptxd_template_read "enter URL of basedir" URL "${1}"
+	ptxd_template_read "enter suffix" SUFFIX "${2}"
     fi
 }
 export -f ptxd_template_read_url
-- 
2.28.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  parent reply	other threads:[~2020-09-22 14:14 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-22 14:14 [ptxdist] [PATCH v3 01/19] setup: introduce pypi mirror Bastian Krause
2020-09-22 14:14 ` [ptxdist] [PATCH v3 02/19] rules/pre/mirror: add ptx/mirror-pypi Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` Bastian Krause [this message]
2020-10-06  8:18   ` [ptxdist] [APPLIED] ptxd_lib_template: allow default url/suffix in ptxd_template_read_url Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 04/19] package templates: add python3 template Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 05/19] python3-async-timeout: version bump 2.0.0 -> 3.0.1 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 06/19] python3-chardet: version bump 2.3.0 -> 3.0.4 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 07/19] python3-attrs: version bump 19.3.0 -> 20.2.0 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 08/19] python3-idna: new package Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 09/19] python3-yarl: version bump 0.8.1 -> 1.5.1 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 10/19] python3-multidict: version bump 2.1.4 -> 4.7.6 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 11/19] python3-aiohttp: mark dependencies as RUNTIME Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 12/19] python3-aiohttp: add missing PYTHON3_ATTRS runtime dependency Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 13/19] python3-aiohttp: version bump 3.4.4 -> 3.6.2 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 14/19] python3-aiohttp-wsgi: version bump 0.2.5 -> 0.8.2 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 15/19] python3-markupsafe: new package Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 16/19] python3-jinja2: " Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 17/19] python3-pytz: version bump 2018.5 -> 2020.1 Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 18/19] python3-sqlparse: new package Bastian Krause
2020-10-06  8:18   ` [ptxdist] [APPLIED] " Michael Olbrich
2020-09-22 14:14 ` [ptxdist] [PATCH v3 19/19] python3-django: version bump 1.8.7 -> 2.2.16 Bastian Krause
2020-10-06  8:18 ` [ptxdist] [APPLIED] setup: introduce pypi mirror Michael Olbrich

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=20200922141434.8544-3-bst@pengutronix.de \
    --to=bst@pengutronix.de \
    --cc=ptxdist@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