mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] setlocalversion: use /bin/bash explicitly
@ 2011-12-13 23:06 Andreas Bießmann
  2011-12-14 10:51 ` Michael Olbrich
  2011-12-16 18:18 ` [ptxdist] [PATCH v2] setlocalversion: replace echo -n with printf Andreas Bießmann
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Bießmann @ 2011-12-13 23:06 UTC (permalink / raw)
  To: PTXdist ML; +Cc: Andreas Bießmann

Using /bin/sh in setlocalversion lead to corrupted $PTXDIST_VERSION_FULL
cause the 'echo -n "$v"' will use the builtin echo which does not know
about -n switch.

Before this patch my version looks like this:

---8<---
$ ptxdist --version
-n 2011.12.0-00047-g9849e20
--->8---

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 scripts/kernel/setlocalversion |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/kernel/setlocalversion b/scripts/kernel/setlocalversion
index 3e14135..bf467ea 100755
--- a/scripts/kernel/setlocalversion
+++ b/scripts/kernel/setlocalversion
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # This scripts adds local version information from the version
 # control systems git, mercurial (hg) and subversion (svn).
-- 
1.7.8


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2011-12-16 18:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 23:06 [ptxdist] [PATCH] setlocalversion: use /bin/bash explicitly Andreas Bießmann
2011-12-14 10:51 ` Michael Olbrich
2011-12-14 11:08   ` Marc Kleine-Budde
2011-12-14 11:20     ` Michael Olbrich
2011-12-16 18:18 ` [ptxdist] [PATCH v2] setlocalversion: replace echo -n with printf 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