summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Jones <carpaski@gentoo.org>2002-09-19 17:45:31 +0000
committerNicholas Jones <carpaski@gentoo.org>2002-09-19 17:45:31 +0000
commit4ff26a935541a327f48c51005951fd05678f6aed (patch)
tree4d136fb238437e4a41bb3ea772a56e1542c6b321 /sys-devel/gcc-compat
parentcompatibility ebuild for upgrade profiles. Maintains gcc libs. (diff)
downloadgentoo-2-4ff26a935541a327f48c51005951fd05678f6aed.tar.gz
gentoo-2-4ff26a935541a327f48c51005951fd05678f6aed.tar.bz2
gentoo-2-4ff26a935541a327f48c51005951fd05678f6aed.zip
Added $ROOT and die statements
Diffstat (limited to 'sys-devel/gcc-compat')
-rw-r--r--sys-devel/gcc-compat/gcc-compat-1.4.ebuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-devel/gcc-compat/gcc-compat-1.4.ebuild b/sys-devel/gcc-compat/gcc-compat-1.4.ebuild
index a3f26c677420..0dc96562dc7b 100644
--- a/sys-devel/gcc-compat/gcc-compat-1.4.ebuild
+++ b/sys-devel/gcc-compat/gcc-compat-1.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-compat/gcc-compat-1.4.ebuild,v 1.1 2002/09/19 17:40:31 carpaski Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-compat/gcc-compat-1.4.ebuild,v 1.2 2002/09/19 17:45:31 carpaski Exp $
DESCRIPTION="This is a compatability layer for use when upgrading to profile $PV"
HOMEPAGE="http://www.gentoo.org"
@@ -23,8 +23,8 @@ src_compile() {
}
src_install () {
- cd /
- tar cvf ${WORKDIR}/gcc-libs.tar $(find /usr/lib/gcc-lib/ -type f -name '*.so*')
- cd ${D}
- tar -mxvf ${WORKDIR}/gcc-libs.tar
+ cd $ROOT || die "Failed to chdir to root: $ROOT"
+ tar cvf ${WORKDIR}/gcc-libs.tar $(find /usr/lib/gcc-lib/ -type f -name '*.so*') || die "failed to create tarball"
+ cd ${D} || die "failed to enter \$D: $D"
+ tar -mxvf ${WORKDIR}/gcc-libs.tar || die "failed to extract tarball"
}