]> git.karo-electronics.de Git - mv-sheeva.git/commit
kbuild: eradicate bashisms in scripts/patch-kernel
authorAndreas Mohr <andi@lisas.de>
Sat, 17 Nov 2007 20:51:25 +0000 (21:51 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:37 +0000 (23:14 +0100)
commit22d6a6a018d897c9c77c6af164722926e70108fa
treecc60f1f56aa40220fdbfccd3c561eaec59a067cd
parent7491a76b23f5100823098b9d5d74ef18a2ca0dc1
kbuild: eradicate bashisms in scripts/patch-kernel

Make the patch-kernel shell script sufficiently compatible with POSIX
shells, i.e., remove bashisms from scripts/patch-kernel.
This means that it now also works on dash 0.5.3-5
and still works on bash 3.1dfsg-8.

Full changelog:
- replaced non-standard "==" by standard "="
- replaced non-standard "source" statement by POSIX "dot" command
- use leading ./ on mktemp filename to force the tempfile to a local
  directory, so that the search path is not used
- replace bash syntax to remove leading dot by similar POSIX syntax
- added missing (optional/not required) $ signs to shell variable names

Signed-off-by: Andreas Mohr <andi@lisas.de>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/patch-kernel