summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-12-31 15:43:10 +0000
committerEric Andersen <andersen@codepoet.org>2002-12-31 15:43:10 +0000
commit1dc53e1ebf97cc12f75aa5a344feabf5b5eb3421 (patch)
tree33e63c1c1d63fb4117a3437d79e5ec27b97114f6 /sources
parent1fff9412193643edf3e7d975dc6ecaae672cca6f (diff)
Clean and update the uclibc toolchain build, and sync up with the
current standalone toolchain builder Makefiles -Erik
Diffstat (limited to 'sources')
-rwxr-xr-xsources/patch-kernel.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/patch-kernel.sh b/sources/patch-kernel.sh
index 3b72b556e..79401c2a7 100755
--- a/sources/patch-kernel.sh
+++ b/sources/patch-kernel.sh
@@ -1,8 +1,14 @@
#! /bin/sh
+# A little script I whipped up to make it easy to
+# patch source trees and have sane error handling
+# -Erik
+#
+# (c) 2002 Erik Andersen <andersen@codepoet.org>
# Set directories from arguments, or use defaults.
targetdir=${1-.}
patchdir=${2-../kernel-patches}
+patchpattern=${3-*}
if [ ! -d "${targetdir}" ] ; then
echo "Aborting. '${targetdir}' is not a directory."
@@ -13,7 +19,7 @@ if [ ! -d "${patchdir}" ] ; then
exit 1
fi
-for i in ${patchdir}/* ; do
+for i in ${patchdir}/${patchpattern} ; do
case "$i" in
*.gz)
type="gzip"; uncomp="gunzip -dc"; ;;