mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] scripts/migrate: use env to find sed
@ 2011-09-30  7:33 Andreas Bießmann
  2011-10-04 13:26 ` Michael Olbrich
  2011-10-05 16:54 ` [ptxdist] [PATCH v2] scripts/migrate: use autotools to insert working sed Andreas Bießmann
  0 siblings, 2 replies; 12+ messages in thread
From: Andreas Bießmann @ 2011-09-30  7:33 UTC (permalink / raw)
  To: ptxdist; +Cc: Andreas Bießmann

Some systems do not provide /bin/sed (e.g. OS X), use env to find sed in
$PATH.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
This is a straight forward solution. Another solution is to preprocess the
scripts in installation phase and insert the values find by configure. This
could be necessary for handling e.g. gnu style argument splitting with '--' and
special configurations. For me the gnu coreutils will have a 'g' before the tool
(gchmod, gchown, ...) cause fink is installing it this way. I guess some other
BSD users may have some similar problems. But currently there is no framework to
pre-process some files in scripts directory. So here is the question, how could
we handle this?
I can think of some '*.in' files with special markers. They could be found by
simple globbing in installation phase. Any other solutions?

 scripts/migrate/migrate_platform |    2 +-
 scripts/migrate/migrate_ptx      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/migrate/migrate_platform b/scripts/migrate/migrate_platform
index 22a58e4..80b3b04 100755
--- a/scripts/migrate/migrate_platform
+++ b/scripts/migrate/migrate_platform
@@ -1,4 +1,4 @@
-#!/bin/sed -f
+#!/usr/bin/env sed -f
 
 #
 # from   : ptxdist-1.99.20
diff --git a/scripts/migrate/migrate_ptx b/scripts/migrate/migrate_ptx
index 896959a..78691b3 100755
--- a/scripts/migrate/migrate_ptx
+++ b/scripts/migrate/migrate_ptx
@@ -1,4 +1,4 @@
-#!/bin/sed -f
+#!/usr/bin/env sed -f
 
 #
 # from   : ptxdist-1.99.10
-- 
1.7.6.1


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-10-17 12:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30  7:33 [ptxdist] [PATCH] scripts/migrate: use env to find sed Andreas Bießmann
2011-10-04 13:26 ` Michael Olbrich
2011-10-05 16:54 ` [ptxdist] [PATCH v2] scripts/migrate: use autotools to insert working sed Andreas Bießmann
2011-10-10 16:04   ` [ptxdist] [PATCH] libptxdist: explicitly use sed to run migrate_* Michael Olbrich
2011-10-11 10:16     ` andreas
2011-10-14 14:04       ` Michael Olbrich
2011-10-14 15:03         ` Bernhard Walle
2011-10-17  7:06           ` Andreas Bießmann
2011-10-17 10:45             ` Bernhard Walle
2011-10-17 12:53               ` Michael Olbrich
2011-10-17  6:54         ` Andreas Bießmann
2011-10-17  7:10           ` Andreas Bießmann

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