/[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.25 Revision 1.26
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.25 2004/02/04 17:54:27 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.26 2004/02/04 19:49:35 johnm Exp $
4 4
5# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel 5# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel
6# with back-compatibility for 2.4 6# with back-compatibility for 2.4
7# 7#
8# Author: John Mylchreest <johnm@gentoo.org> 8# Author: John Mylchreest <johnm@gentoo.org>
392 while [ ${PATCH_DEPTH} -lt 5 ] 392 while [ ${PATCH_DEPTH} -lt 5 ]
393 do 393 do
394 echo "Attempting Dry-run:" > ${STDERR_T} 394 echo "Attempting Dry-run:" > ${STDERR_T}
395 echo "cmd: patch -p${PATCH_DEPTH} --dry-run -f < ${i}" >> ${STDERR_T} 395 echo "cmd: patch -p${PATCH_DEPTH} --dry-run -f < ${i}" >> ${STDERR_T}
396 echo "=======================================================" >> ${STDERR_T} 396 echo "=======================================================" >> ${STDERR_T}
397 if (patch -p${PATCH_DEPTH} --dry-run -f < ${i} >> ${STDERR_T}) 397 if [ $(patch -p${PATCH_DEPTH} --dry-run -f < ${i} >> ${STDERR_T}) $? -eq 0 ]
398 then 398 then
399 echo "Attempting patch:" > ${STDERR_T} 399 echo "Attempting patch:" > ${STDERR_T}
400 echo "cmd: patch -p${PATCH_DEPTH} -f < ${i}" >> ${STDERR_T} 400 echo "cmd: patch -p${PATCH_DEPTH} -f < ${i}" >> ${STDERR_T}
401 echo "=======================================================" >> ${STDERR_T} 401 echo "=======================================================" >> ${STDERR_T}
402 $(patch -p${PATCH_DEPTH} -f < ${i} >> ${STDERR_T}) 402 if [ $(patch -p${PATCH_DEPTH} -f < ${i} >> ${STDERR_T}) "$?" -eq 0 ]
403 if [ "$?" -eq 0 ]
404 then 403 then
405 eend 0 404 eend 0
406 rm ${STDERR_T} 405 rm ${STDERR_T}
407 break 406 break
408 else 407 else

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20