/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
278 extention=${i/*./} 278 extention=${i/*./}
279 PIPE_CMD="" 279 PIPE_CMD=""
280 case ${extention} in 280 case ${extention} in
281 bz2) PIPE_CMD="bzip2 -dc";; 281 bz2) PIPE_CMD="bzip2 -dc";;
282 patch) PIPE_CMD="cat";; 282 patch) PIPE_CMD="cat";;
283 diff) PIPE_CMD="cat";;
283 gz|Z|z) PIPE_CMD="gzip -dc";; 284 gz|Z|z) PIPE_CMD="gzip -dc";;
284 ZIP|zip) PIPE_CMD="unzip -p";; 285 ZIP|zip) PIPE_CMD="unzip -p";;
285 *) UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} ${i}";; 286 *) UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} ${i}";;
286 esac 287 esac
288 x=${i/*\//}
289 x=${x/\.${extention}/}
287 [ -n "${PIPE_CMD}" ] && ${PIPE_CMD} ${i} > ${KPATCH_DIR}/${i/*\//}.patch 290 [ -n "${PIPE_CMD}" ] && ${PIPE_CMD} ${i} > ${KPATCH_DIR}/${x}.patch
288 done 291 done
289 292
290 #populate KPATCH_DIRS so we know where to look to remove the excludes 293 #populate KPATCH_DIRS so we know where to look to remove the excludes
291 x=${KPATCH_DIR} 294 x=${KPATCH_DIR}
292 KPATCH_DIR="" 295 KPATCH_DIR=""
310 done 313 done
311 314
312 # and now, finally, we patch it :) 315 # and now, finally, we patch it :)
313 for x in ${KPATCH_DIR} 316 for x in ${KPATCH_DIR}
314 do 317 do
315 for i in $(find ${x} -maxdepth 1 -iname "*.patch" | sort -u) 318 for i in $(find ${x} -maxdepth 1 -iname "*.patch" -or -iname "*.diff" | sort -u)
316 do 319 do
317 320
318 321
319 PATCH_DEPTH=0 322 PATCH_DEPTH=0
320 ebegin "Applying ${i/*\//}" 323 ebegin "Applying ${i/*\//}"

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20