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

Diff of /eclass/autotools.eclass

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

Revision 1.24 Revision 1.25
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/autotools.eclass,v 1.24 2005/10/09 12:00:34 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.25 2005/12/08 15:49:29 azarah Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# Enhancements: Martin Schlemmer <azarah@gentoo.org> 6# Enhancements: Martin Schlemmer <azarah@gentoo.org>
7# 7#
8# This eclass is for handling autotooled software packages that 8# This eclass is for handling autotooled software packages that
193 subdirs_scan_out=$(autotools_check_macro "AC_CONFIG_SUBDIRS") 193 subdirs_scan_out=$(autotools_check_macro "AC_CONFIG_SUBDIRS")
194 [[ -n ${subdirs_scan_out} ]] || return 0 194 [[ -n ${subdirs_scan_out} ]] || return 0
195 195
196 echo "${subdirs_scan_out}" | gawk \ 196 echo "${subdirs_scan_out}" | gawk \
197 '($0 !~ /^[[:space:]]*(#|dnl)/) { 197 '($0 !~ /^[[:space:]]*(#|dnl)/) {
198 if (match($0, "AC_CONFIG_SUBDIRS\\(\\[?([^\\])]*)", res)) { 198 if (match($0, /AC_CONFIG_SUBDIRS:(.*)$/, res))
199 split(res[1], DIRS, /[\])]/)
200 print DIRS[1] 199 print res[1]
201 }
202 }' | uniq 200 }' | uniq
203 201
204 return 0 202 return 0
205} 203}
206 204

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

  ViewVC Help
Powered by ViewVC 1.1.20