On Wed, Dec 14, 2011 at 12:06:59AM +0100, Andreas Bießmann wrote: > 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.
Hmmm, I think we could just drop the '-n'. Marc: this is your code, what do you think. Michael > Before this patch my version looks like this: > > ---8<--- > $ ptxdist --version > -n 2011.12.0-00047-g9849e20 > --->8--- > > Signed-off-by: Andreas Bießmann <[email protected]> > --- > 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 > [email protected] -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
