From: Daniel Kriesten <daniel.kriesten@etit.tu-chemnitz.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Using PTXdist on Mac OS
Date: Tue, 17 Apr 2012 14:32:36 +0200 [thread overview]
Message-ID: <429E0BA7-7180-43FC-850C-EBB16C6CC893@etit.tu-chemnitz.de> (raw)
In-Reply-To: <20120417120359.GA16599@regiomontanus.bwalle.de>
[-- Attachment #1.1.1: Type: text/plain, Size: 668 bytes --]
Dear all,
find attached the patch to avoid the use of seq in the genhdimg script.
Am 17.04.2012 um 14:03 schrieb Bernhard Walle:
> * Daniel Kriesten <daniel.kriesten@etit.tu-chemnitz.de> [2012-04-17 13:59]:
>>>> care to send a patch?
>>>
>>> But gseq is not available on Linux. So I think adding it to the
>>> configure check is the only reasonable approach?
>>
>> Well, whats the advantage of $(seq 4) over "for i in 1 2 3 4; do ..." ?
>
> I didn't look in the code, sorry. Of course that's okay for me. ;)
>
>
> Regards,
> Bernhard
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
Regards,
Daniel
--
Daniel Kriesten
http://www.die-kriestens.de
[-- Attachment #1.1.2: 0001-Replace-seq-by-the-appropriate-sequence.patch --]
[-- Type: application/octet-stream, Size: 1100 bytes --]
From dee07eb444f3291ee963704af6e95f473c1d4119 Mon Sep 17 00:00:00 2001
From: Daniel Kriesten <krid@tu-chemnitz.eu>
Date: Tue, 17 Apr 2012 14:15:43 +0200
Subject: [PATCH] Replace seq by the appropriate sequence
The seq command is not availabale on all systems. By replacing the (at
least two) occurences of seq with the corresponding sequence the
dependecy on seq is resolved.
Signed-off-by: Daniel Kriesten <krid@tu-chemnitz.eu>
---
scripts/genhdimg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/genhdimg b/scripts/genhdimg
index d3143ac..4c4bc2e 100755
--- a/scripts/genhdimg
+++ b/scripts/genhdimg
@@ -79,7 +79,7 @@ echo "------------------------------------"
echo "Creating hard disk's partition table"
echo "------------------------------------"
-for i in $(seq 4); do
+for i in 1 2 3 4; do
part_opts "$i"
if [ $i -gt $partcount ]; then
@@ -100,7 +100,7 @@ for i in $(seq 4); do
extraarg=""
done
-for i in $(seq 4); do
+for i in 1 2 3 4; do
part_opts "$i"
if [ -z "${pimage}" ]; then
--
1.7.10
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4964 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2012-04-17 12:32 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 17:11 Bernhard Walle
2012-04-09 17:48 ` Juergen Beisert
2012-04-10 9:37 ` Bernhard Walle
2012-04-09 18:01 ` Andreas Bießmann
2012-04-09 18:59 ` Bernhard Walle
2012-04-09 19:47 ` Juergen Beisert
2012-04-09 20:04 ` Andreas Bießmann
2012-04-09 20:48 ` Andreas Bießmann
2012-04-10 9:04 ` Bernhard Walle
2012-04-10 18:35 ` Bernhard Walle
2012-04-17 11:08 ` Daniel Kriesten
2012-04-17 11:24 ` Michael Olbrich
2012-04-17 11:45 ` Bernhard Walle
2012-04-17 11:59 ` Daniel Kriesten
2012-04-17 12:03 ` Bernhard Walle
2012-04-17 12:32 ` Daniel Kriesten [this message]
2012-04-18 8:29 ` Michael Olbrich
2012-04-18 11:25 ` Daniel Kriesten
2012-04-18 14:16 ` Michael Olbrich
2012-04-18 14:28 ` Daniel Kriesten
2012-04-19 10:41 ` Daniel Kriesten
2012-04-19 11:29 ` Andreas Bießmann
2012-04-19 12:04 ` Daniel Kriesten
2012-04-19 12:25 ` Andreas Bießmann
2012-04-19 13:12 ` Daniel Kriesten
2012-04-19 13:27 ` Michael Olbrich
2012-04-19 14:03 ` Andreas Bießmann
2012-04-19 20:13 ` Bernhard Walle
2012-12-08 15:31 ` Daniel Kriesten
2012-12-08 15:43 ` [ptxdist] Using PTXdist on Mac OS 10.7 Daniel Kriesten
2012-12-10 8:48 ` Michael Olbrich
2012-12-10 8:46 ` [ptxdist] Using PTXdist on Mac OS Michael Olbrich
2012-12-11 15:00 ` Daniel Kriesten
2012-12-12 11:00 ` Michael Olbrich
2012-04-17 11:48 ` Bernhard Walle
2012-04-17 12:04 ` Daniel Kriesten
2012-04-17 12:18 ` Bernhard Walle
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=429E0BA7-7180-43FC-850C-EBB16C6CC893@etit.tu-chemnitz.de \
--to=daniel.kriesten@etit.tu-chemnitz.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