allow for overriding the default -p1 arguement to patch
authorMike Frysinger <vapier@gentoo.org>
Mon, 18 Oct 2004 20:57:31 +0000 (20:57 -0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 18 Oct 2004 20:57:31 +0000 (20:57 -0000)
toolchain/patch-kernel.sh

index 79401c2a74f21af93ddc91abd037df92bcb9f0de..4156c229856deca929ee7f25e3d11f682f5b7c9f 100755 (executable)
@@ -36,7 +36,7 @@ for i in ${patchdir}/${patchpattern} ; do
     esac
     echo ""
     echo "Applying ${i} using ${type}: " 
-    ${uncomp} ${i} | patch -p1 -E -d ${targetdir} 
+    ${uncomp} ${i} | patch ${patch_level:--p1} -E -d ${targetdir} 
     if [ $? != 0 ] ; then
         echo "Patch failed!  Please fix $i!"
        exit 1