Lines Matching +full:1 +full:ac

11 #   scripts/patch-kernel . .. -ac
12 # Get the latest Linux kernel and patch it with the latest ac patch
15 # scripts/patch-kernel . .. 2.4.9 -ac
16 # Gets 2.4.9 with latest ac patches
18 # Gets 2.4.9 with ac patch ac11
20 # ac to ac relative patches
33 # Adam Sulmicki <adam@cfar.umd.edu>, 1st January 1997.
42 # Added -ac option, use -ac or -ac9 (say) to stop at a particular version
65 sourcedir=${1-/usr/src/linux}
69 if [ "$1" = -h -o "$1" = --help -o ! -r "$sourcedir/Makefile" ]; then
76 exit 1
79 # See if we have any -ac options
83 -ac*)
93 exit 1
99 exit 1
106 filebase=$1;
137 return 1;
148 echo -n "Applying $1 (${name})... "
149 if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
154 return 1;
159 return 1;
170 echo -n "Reversing $1 (${name}) ... "
171 if $uncomp ${patchdir}/"$1"${ext} | patch -p1 -Rs -N -E -d $sourcedir
176 exit 1
181 return 1
192 TMPFILE=`mktemp ./.tmpver.XXXXXX` || { echo "cannot make temp file" ; exit 1; }
194 tr -d [:blank:] < $TMPFILE > $TMPFILE.1
195 . $TMPFILE.1
200 exit 1
244 reversePatch ${patch} || exit 1
263 SUBLEVEL=$(($SUBLEVEL + 1))
269 exit 1
302 # Out great user wants the -ac patches
303 # They could have done -ac (get latest) or -acxx where xx=version they want
304 if [ $gotac = "-ac" ]; then
307 for PATCHNAMES in $patchdir/patch-${CURRENTFULLVERSION}-ac*\.*
309 ACVALUE=`echo $PATCHNAMES | sed -e 's/^.*patch-[0-9.]*-ac\([0-9]*\).*/\1/'`
311 findFile $patchdir/patch-${CURRENTFULLVERSION}-ac${ACVALUE} || break
319 findFile $patchdir/patch-${CURRENTFULLVERSION}-ac${HIGHESTPATCH} || break
320 applyPatch patch-${CURRENTFULLVERSION}-ac${HIGHESTPATCH}
322 echo "No -ac patches found"
328 exit 1