Lines Matching full:patch

4 #   usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ]
5 # The source directory defaults to /usr/src/linux, and the patch
8 # scripts/patch-kernel . ..
11 # scripts/patch-kernel . .. -ac
12 # Get the latest Linux kernel and patch it with the latest ac patch
13 # scripts/patch-kernel . .. 2.4.9
15 # scripts/patch-kernel . .. 2.4.9 -ac
17 # scripts/patch-kernel . .. 2.4.9 -ac11
18 # Gets 2.4.9 with ac patch ac11
23 # It then looks for patches for the next sublevel in the patch directory.
24 # This is applied using "patch -p1 -s" from within the kernel directory.
25 # A check is then made for "*.rej" files to see if the patch was
39 # Fixed previous patch so that if we are already at the correct version
40 # not to patch up.
53 # increments the SUBLEVEL (x in 2.6.x.y) until no more patch files are found;
57 # patch-kernel does not normally support reverse patching, but does so when
62 PNAME=patch-kernel
73 patch directory defaults to the current directory,
92 echo "cannot find patch file: ${patch}"
144 # Apply a patch and check it goes in cleanly
145 # First param is patch name (e.g. patch-2.4.9-ac5) - without path or extension
149 if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
168 # arg1 is patch filename
171 if $uncomp ${patchdir}/"$1"${ext} | patch -p1 -Rs -N -E -d $sourcedir
242 patch="patch-${CURRENTFULLVERSION}"
243 findFile $patchdir/${patch} || noFile ${patch}
244 reversePatch ${patch} || exit 1
272 patch=patch-$FULLVERSION
274 findFile $patchdir/${patch} || noFile ${patch}
276 # Apply the patch and check all is OK
277 applyPatch $patch || break
289 patch=patch-$FULLVERSION
292 findFile $patchdir/${patch} || noFile ${patch}
294 # Apply the patch and check all is OK
295 applyPatch $patch || break
307 for PATCHNAMES in $patchdir/patch-${CURRENTFULLVERSION}-ac*\.*
309 ACVALUE=`echo $PATCHNAMES | sed -e 's/^.*patch-[0-9.]*-ac\([0-9]*\).*/\1/'`
310 # Check it is actually a recognised patch type
311 findFile $patchdir/patch-${CURRENTFULLVERSION}-ac${ACVALUE} || break
319 findFile $patchdir/patch-${CURRENTFULLVERSION}-ac${HIGHESTPATCH} || break
320 applyPatch patch-${CURRENTFULLVERSION}-ac${HIGHESTPATCH}
326 findFile $patchdir/patch-${CURRENTFULLVERSION}${gotac} || {
327 echo "Sorry, I couldn't find the $gotac patch for $CURRENTFULLVERSION. Hohum."
330 applyPatch patch-${CURRENTFULLVERSION}${gotac}