]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix bashisms in scripts_patch-kernel
authorAndreas Bombe <bombe@informatik.tu-muenchen.de>
Thu, 20 Jun 2002 06:40:32 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 20 Jun 2002 06:40:32 +0000 (23:40 -0700)
  The following trivial patch makes the patch-kernel script executable by
  a bare bone POSIX shell like ash.  Either that, or the interpreter line
  has to be changed to /bin/bash.

  The same patch applies to 2.4 (with some line offset).

scripts/patch-kernel

index 5d4628cfd600afa4e743fc94ae65a0858758d577..3f316b6c4d9cd71ae3ec7080b226708cceb5b52d 100755 (executable)
@@ -68,7 +68,7 @@ done
 # ---------------------------------------------------------------------------
 # Find a file, first parameter is basename of file
 # it tries many compression mechanisms and sets variables to say how to get it
-function findFile {
+findFile () {
   filebase=$1;
 
   if [ -r ${filebase}.gz ]; then
@@ -106,7 +106,7 @@ function findFile {
 # Apply a patch and check it goes in cleanly
 # First param is patch name (e.g. patch-2.4.9-ac5) - without path or extension
 
-function applyPatch {
+applyPatch () {
   echo -n "Applying $1 (${name})... "
   if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
   then