/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

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

Revision 1.18 Revision 1.19
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/flag-o-matic.eclass,v 1.18 2003/06/17 14:38:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.19 2003/06/19 13:23:41 vapier Exp $
4# 4#
5# Author Bart Verwilst <verwilst@gentoo.org> 5# Author Bart Verwilst <verwilst@gentoo.org>
6 6
7ECLASS=flag-o-matic 7ECLASS=flag-o-matic
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
54 export CFLAGS="${CFLAGS:1:${#CFLAGS}-2}" 54 export CFLAGS="${CFLAGS:1:${#CFLAGS}-2}"
55 export CXXFLAGS="${CXXFLAGS:1:${#CXXFLAGS}-2}" 55 export CXXFLAGS="${CXXFLAGS:1:${#CXXFLAGS}-2}"
56} 56}
57 57
58append-flags() { 58append-flags() {
59 CFLAGS="${CFLAGS} $1" 59 CFLAGS="${CFLAGS} $@"
60 CXXFLAGS="${CXXFLAGS} $1" 60 CXXFLAGS="${CXXFLAGS} $@"
61} 61}
62 62
63replace-flags() { 63replace-flags() {
64 CFLAGS="${CFLAGS/${1}/${2} }" 64 CFLAGS="${CFLAGS/${1}/${2} }"
65 CXXFLAGS="${CXXFLAGS/${1}/${2} }" 65 CXXFLAGS="${CXXFLAGS/${1}/${2} }"

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20