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

Diff of /eclass/makeedit.eclass

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

Revision 1.10 Revision 1.11
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/makeedit.eclass,v 1.10 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.11 2005/09/26 22:22:08 azarah Exp $
4# 4#
5# Author: Spider 5# Author: Spider
6# 6#
7# To use this eclass, do 2 things: 7# To use this eclass, do 2 things:
8# 1. append-flags "$MAKEEDIT_FLAGS". If you filter-flags, make sure to do 8# 1. append-flags "$MAKEEDIT_FLAGS". If you filter-flags, make sure to do
18 18
19edit_makefiles() { 19edit_makefiles() {
20 # We already add "-Wno-return-type -w" to compiler flags, so 20 # We already add "-Wno-return-type -w" to compiler flags, so
21 # no need to replace "-Wall" and "-Wreturn-type" with them. 21 # no need to replace "-Wall" and "-Wreturn-type" with them.
22 einfo "Parsing Makefiles ..." 22 einfo "Parsing Makefiles ..."
23 find . -iname makefile -o -name \*.mk -o -name GNUmakefile -print0 | \ 23 find . \( -iname makefile -o -name \*.mk -o -name GNUmakefile \) -print0 | \
24 xargs -0 sed -i \ 24 xargs -0 sed -i \
25 -e 's:-Wall::g' \ 25 -e 's:-Wall::g' \
26 -e 's:-Wreturn-type::g' \ 26 -e 's:-Wreturn-type::g' \
27 -e 's:-pedantic::g' 27 -e 's:-pedantic::g'
28} 28}

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20