summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2003-04-23 00:22:48 +0000
committerBrandon Low <lostlogic@gentoo.org>2003-04-23 00:22:48 +0000
commitc7cec87cfdcbd5f3e7e5daf3cb14fd7310c49a44 (patch)
tree2126f7d7edce7dafa147cd5c713001edb0967bc2 /eclass
parentChange supersed dependencies (diff)
downloadhistorical-c7cec87cfdcbd5f3e7e5daf3cb14fd7310c49a44.tar.gz
historical-c7cec87cfdcbd5f3e7e5daf3cb14fd7310c49a44.tar.bz2
historical-c7cec87cfdcbd5f3e7e5daf3cb14fd7310c49a44.zip
Use sed -i and be generally more efficient in use of sed
Diffstat (limited to 'eclass')
-rw-r--r--eclass/commonbox.eclass37
1 files changed, 9 insertions, 28 deletions
diff --git a/eclass/commonbox.eclass b/eclass/commonbox.eclass
index db54ee32b09f..576f32560e55 100644
--- a/eclass/commonbox.eclass
+++ b/eclass/commonbox.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/commonbox.eclass,v 1.19 2003/04/23 00:11:15 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/commonbox.eclass,v 1.20 2003/04/23 00:22:48 lostlogic Exp $
#
# Author: Seemant Kulleen <seemant@gentoo.org>
#
@@ -36,46 +36,27 @@ fi
commonprep() {
- cp ${S}/Makefile.am ${T}
- sed -e 's:data ::' ${T}/Makefile.am > ${S}/Makefile.am
+ sed -i -e 's:data ::' ${S}/Makefile.am
- cp ${S}/util/Makefile.am ${T}
- sed \
- -e 's:bsetbg::' \
- -e 's:bsetroot::' \
- ${T}/Makefile.am > ${S}/util/Makefile.am
+ sed -i -e 's:bsetbg::; s:bsetroot::' ${S}/util/Makefile.am
- cp ${S}/doc/Makefile.am ${T}
- sed \
- -e 's:bsetroot.1::' \
- -e 's:bsetbg.1::' \
- ${T}/Makefile.am > ${S}/doc/Makefile.am
+ sed -i -e 's:bsetroot.1::; s:bsetbg.1::' ${S}/doc/Makefile.am
for i in `find ${S} -name 'Makefile.am'`
do
- cp ${i} ${T}
- sed 's:$(pkgdatadir)/nls:/usr/share/locale:' \
- ${T}/Makefile.am > ${i}
+ sed -i -e 's:$(pkgdatadir)/nls:/usr/share/locale:' ${i}
done
for i in `find ${S}/nls -name 'Makefile.am'`
do
- cp ${i} ${T}
- sed \
- -e "s:blackbox.cat:${MYBIN}.cat:g" \
- -e "s:${PN}.cat:${MYBIN}.cat:g" \
- ${T}/Makefile.am > ${i}
+ sed -i -e "s:blackbox.cat:${MYBIN}.cat:g; s:${PN}.cat:${MYBIN}.cat:g" ${i}
done
for i in `find ${S}/src -name 'Makefile*'`
do
- rm ${T}/Makefile*
- cp ${i} ${T}
- sed \
- -e "s:/styles/Results:/styles/Fury-NG:" \
- -e "s:/styles/mbdtex:/styles/Fury-NG:" \
- -e "s:/styles/Clean:/styles/Fury-NG:" \
- ${T}/Makefile* > ${i}
+ sed -i -e "s:/styles/Results:/styles/Fury-NG:" \
+ -e "s:/styles/mbdtex:/styles/Fury-NG:" \
+ -e "s:/styles/Clean:/styles/Fury-NG:" ${i}
done
}