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

Diff of /eclass/multilib.eclass

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

Revision 1.3 Revision 1.4
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.3 2005/01/12 12:03:46 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.4 2005/01/12 20:27:30 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.
245 local file 245 local file
246 for file in $(create_ml_includes-allfiles ${basedirs}); do 246 for file in $(create_ml_includes-allfiles ${basedirs}); do
247 local name="$(echo $file | tr a-z A-Z | sed 's:[^A-Z]:_:g')" 247 local name="$(echo $file | tr a-z A-Z | sed 's:[^A-Z]:_:g')"
248 { 248 {
249 echo "/* Common header file autogenerated by create_ml_includes in multilib.eclass */" 249 echo "/* Common header file autogenerated by create_ml_includes in multilib.eclass */"
250 echo "#ifndef __CREATE_ML_INCLUDES_STUB_${name}__" 250 #echo "#ifndef __CREATE_ML_INCLUDES_STUB_${name}__"
251 echo "#define __CREATE_ML_INCLUDES_STUB_${name}__" 251 #echo "#define __CREATE_ML_INCLUDES_STUB_${name}__"
252 echo "" 252 #echo ""
253 253
254 local dir 254 local dir
255 for dir in ${basedirs}; do 255 for dir in ${basedirs}; do
256 if [ -f "${D}/${dir}/${file}" ]; then 256 if [ -f "${D}/${dir}/${file}" ]; then
257 echo "#ifdef $(create_ml_includes-sym_for_dir ${dir} ${mlinfo})" 257 echo "#ifdef $(create_ml_includes-sym_for_dir ${dir} ${mlinfo})"
259 echo "#endif /* $(create_ml_includes-sym_for_dir ${dir} ${mlinfo}) */" 259 echo "#endif /* $(create_ml_includes-sym_for_dir ${dir} ${mlinfo}) */"
260 echo "" 260 echo ""
261 fi 261 fi
262 done 262 done
263 263
264 echo "#endif /* __CREATE_ML_INCLUDES_STUB_${name}__ */" 264 #echo "#endif /* __CREATE_ML_INCLUDES_STUB_${name}__ */"
265 } > ${D}/${dest}/${file} 265 } > ${D}/${dest}/${file}
266 done 266 done
267} 267}
268 268
269# Helper function for create_ml_includes 269# Helper function for create_ml_includes

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20