/[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.200 Revision 1.201
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
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.200 2007/01/02 01:43:34 dsd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.201 2007/01/25 22:06:35 dsd Exp $
4 4
5# Description: kernel.eclass rewrite for a clean base regarding the 2.6 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
6# series of kernel with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
7# 7#
8# Maintainer: John Mylchreest <johnm@gentoo.org> 8# Maintainer: John Mylchreest <johnm@gentoo.org>
692 692
693# unipatch 693# unipatch
694#============================================================== 694#==============================================================
695unipatch() { 695unipatch() {
696 local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE 696 local i x y z extention PIPE_CMD UNIPATCH_DROP KPATCH_DIR PATCH_DEPTH ELINE
697 local STRICT_COUNT PATCH_LEVEL myLC_ALL myLANG 697 local STRICT_COUNT PATCH_LEVEL myLC_ALL myLANG extglob_bak
698 698
699 # set to a standard locale to ensure sorts are ordered properly. 699 # set to a standard locale to ensure sorts are ordered properly.
700 myLC_ALL="${LC_ALL}" 700 myLC_ALL="${LC_ALL}"
701 myLANG="${LANG}" 701 myLANG="${LANG}"
702 LC_ALL="C" 702 LC_ALL="C"
704 704
705 [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/" 705 [ -z "${KPATCH_DIR}" ] && KPATCH_DIR="${WORKDIR}/patches/"
706 [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR} 706 [ ! -d ${KPATCH_DIR} ] && mkdir -p ${KPATCH_DIR}
707 707
708 # We're gonna need it when doing patches with a predefined patchlevel 708 # We're gonna need it when doing patches with a predefined patchlevel
709 extglob_bak=$(shopt -p extglob)
709 shopt -s extglob 710 shopt -s extglob
710 711
711 # This function will unpack all passed tarballs, add any passed patches, and remove any passed patchnumbers 712 # This function will unpack all passed tarballs, add any passed patches, and remove any passed patchnumbers
712 # usage can be either via an env var or by params 713 # usage can be either via an env var or by params
713 # although due to the nature we pass this within this eclass 714 # although due to the nature we pass this within this eclass
865 # clean up KPATCH_DIR's - fixes bug #53610 866 # clean up KPATCH_DIR's - fixes bug #53610
866 for x in ${KPATCH_DIR}; do rm -Rf ${x}; done 867 for x in ${KPATCH_DIR}; do rm -Rf ${x}; done
867 868
868 LC_ALL="${myLC_ALL}" 869 LC_ALL="${myLC_ALL}"
869 LANG="${myLANG}" 870 LANG="${myLANG}"
871 eval ${extglob_bak}
870} 872}
871 873
872# getfilevar accepts 2 vars as follows: 874# getfilevar accepts 2 vars as follows:
873# getfilevar <VARIABLE> <CONFIGFILE> 875# getfilevar <VARIABLE> <CONFIGFILE>
874# pulled from linux-info 876# pulled from linux-info

Legend:
Removed from v.1.200  
changed lines
  Added in v.1.201

  ViewVC Help
Powered by ViewVC 1.1.20