diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-04 23:17:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-04 23:17:54 +0000 |
commit | 87dc20adce1847f1ee7f8b399fe0f932dd38acbe (patch) | |
tree | 150b569a609e4da3f379e474d95c267f8812772c /bin | |
parent | cleanup and simplify (diff) | |
download | portage-cvs-87dc20adce1847f1ee7f8b399fe0f932dd38acbe.tar.gz portage-cvs-87dc20adce1847f1ee7f8b399fe0f932dd38acbe.tar.bz2 portage-cvs-87dc20adce1847f1ee7f8b399fe0f932dd38acbe.zip |
touchup output and use exec more
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emake | 6 | ||||
-rwxr-xr-x | bin/prepstrip | 16 |
2 files changed, 14 insertions, 8 deletions
@@ -1,7 +1,7 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/emake,v 1.9 2004/10/04 13:56:50 vapier Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/emake,v 1.10 2005/05/04 23:17:54 vapier Exp $ # # emake: Supplies some default parameters to GNU make. At the moment the # only parameter supplied is -jN, where N is a number of @@ -11,4 +11,4 @@ # /etc/make.globals here because emake is only called from an # ebuild. -make ${MAKEOPTS} ${EXTRA_EMAKE} "$@" +exec make ${MAKEOPTS} ${EXTRA_EMAKE} "$@" diff --git a/bin/prepstrip b/bin/prepstrip index caacef9..893c50c 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -1,19 +1,20 @@ #!/bin/bash -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/prepstrip,v 1.25 2004/12/06 03:04:31 carpaski Exp $ +# $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/bin/prepstrip,v 1.26 2005/05/04 23:17:54 vapier Exp $ if [ "${FEATURES//*nostrip*/true}" == "true" ] || [ "${RESTRICT//*nostrip*/true}" == "true" ] ; then echo "nostrip" STRIP="/bin/false" + PORTAGE_STRIP_FLAGS="" else STRIP="${STRIP:-${CHOST}-strip}" type -p ${STRIP} > /dev/null || STRIP=strip -fi -PORTAGE_STRIP_FLAGS="${PORTAGE_STRIP_FLAGS:---strip-unneeded}" + PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS:---strip-unneeded} +fi -echo "strip: ${PORTAGE_STRIP_FLAGS}" +banner=1 retval=0 for x in "$@" ; do @@ -22,6 +23,11 @@ for x in "$@" ; do find "${x}" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 -or -name '*.so' -or -name '*.so.*' \) -print0 | $XARGS -0 -n500 prepstrip else + if [ ${banner} -eq 1 ] ; then + echo "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}" + banner=0 + fi + f=$(file "${x}") if [ -z "${f/*current ar archive*/}" ]; then echo " ${x:${#D}:${#x}}" |