/[gentoo-x86]/eclass/multilib.eclass
Gentoo

Diff of /eclass/multilib.eclass

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

Revision 1.21 Revision 1.22
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/multilib.eclass,v 1.21 2005/02/13 14:05:54 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.22 2005/02/14 11:33:11 eradicator Exp $
4# 4#
5# Author: Jeremy Huddleston <eradicator@gentoo.org> 5# Author: Jeremy Huddleston <eradicator@gentoo.org>
6# 6#
7# This eclass is for all functions pertaining to handling multilib. 7# This eclass is for all functions pertaining to handling multilib.
8# configurations. 8# configurations.
391 local file 391 local file
392 for file in $(create_ml_includes-allfiles ${basedirs}); do 392 for file in $(create_ml_includes-allfiles ${basedirs}); do
393 local name="$(echo $file | tr a-z A-Z | sed 's:[^A-Z]:_:g')" 393 local name="$(echo $file | tr a-z A-Z | sed 's:[^A-Z]:_:g')"
394 { 394 {
395 echo "/* Common header file autogenerated by create_ml_includes in multilib.eclass */" 395 echo "/* Common header file autogenerated by create_ml_includes in multilib.eclass */"
396 #echo "#ifndef __CREATE_ML_INCLUDES_STUB_${name}__"
397 #echo "#define __CREATE_ML_INCLUDES_STUB_${name}__"
398 #echo ""
399 396
400 local dir 397 local dir
401 for dir in ${basedirs}; do 398 for dir in ${basedirs}; do
402 if [ -f "${D}/${dir}/${file}" ]; then 399 if [ -f "${D}/${dir}/${file}" ]; then
403 echo "#ifdef $(create_ml_includes-sym_for_dir ${dir} ${mlinfo})" 400 local sym=$(create_ml_includes-sym_for_dir ${dir} ${mlinfo})
401 if [[ ${sym::1} == "!" ]]; then
402 echo "#ifndef ${sym:1}"
403 else
404 echo "#ifdef ${sym}"
405 fi
404 echo "#include \"$(create_ml_includes-relative_between ${dest}/$(dirname ${file}) ${dir}/${file})\"" 406 echo "#include \"$(create_ml_includes-relative_between ${dest}/$(dirname ${file}) ${dir}/${file})\""
405 echo "#endif /* $(create_ml_includes-sym_for_dir ${dir} ${mlinfo}) */" 407 echo "#endif /* ${sym} */"
406 echo "" 408 echo ""
407 fi 409 fi
408 done 410 done
409 411
410 #echo "#endif /* __CREATE_ML_INCLUDES_STUB_${name}__ */" 412 #echo "#endif /* __CREATE_ML_INCLUDES_STUB_${name}__ */"

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20