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

Diff of /eclass/virtuoso.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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/virtuoso.eclass,v 1.3 2010/04/06 17:28:31 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/virtuoso.eclass,v 1.4 2010/05/12 17:59:02 reavertm Exp $
4 4
5# @ECLASS: virtuoso.eclass 5# @ECLASS: virtuoso.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Maciej Mrozowski <reavertm@gentoo.org> 7# Maciej Mrozowski <reavertm@gentoo.org>
8# 8#
87 if [[ -f "${path}"/Makefile.am ]]; then 87 if [[ -f "${path}"/Makefile.am ]]; then
88 # Uncomment if necessary 88 # Uncomment if necessary
89 sed -e '/^# DISABLED \s*SUBDIRS\s*=/s/.*/SUBDIRS =/g' \ 89 sed -e '/^# DISABLED \s*SUBDIRS\s*=/s/.*/SUBDIRS =/g' \
90 -i "${path}"/Makefile.am 90 -i "${path}"/Makefile.am
91 # Append subdirs if not there already 91 # Append subdirs if not there already
92 if [[ -z `grep --color=never -P "SUBDIRS\s*=.*${subdir}\b" "${path}"/Makefile.am` ]]; then 92 if [[ -z `sed -ne "/SUBDIRS\s*=.*${subdir}\b/p" "${path}"/Makefile.am` ]]; then
93 sed -e "/^SUBDIRS\s*=/s|$| ${subdir}|" \ 93 sed -e "/^SUBDIRS\s*=/s|$| ${subdir}|" \
94 -i "${path}"/Makefile.am || die "failed to append ${subdir}" 94 -i "${path}"/Makefile.am || die "failed to append ${subdir}"
95 fi 95 fi
96 fi 96 fi
97 [[ "${path}" = . ]] && break 97 [[ "${path}" = . ]] && break

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

  ViewVC Help
Powered by ViewVC 1.1.20