From 22532ec8c8a030d4d513947a2ad12e0eab5e61cd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Nov 2008 02:25:05 +0000 Subject: =?UTF-8?q?Fix=20new*=20and=20do*=20ebuild=20helpers=20to=20genera?= =?UTF-8?q?te=20consistent=20error=20messages=20for=20missing=20files=20an?= =?UTF-8?q?d=20generate=20an=20appropriate=20QA=20Notice=20when=20such=20a?= =?UTF-8?q?n=20error=20is=20detected=20in=20the=20build=20log.=20Thanks=20?= =?UTF-8?q?to=20Diego=20'Flameeyes'=20Petten=C3=B2=20=20for?= =?UTF-8?q?=20the=20suggestion.=20(trunk=20r11916)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/main/branches/2.1.6/; revision=11917 --- bin/newlib.so | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/newlib.so') diff --git a/bin/newlib.so b/bin/newlib.so index 5ea2e33b4..eb23d2675 100755 --- a/bin/newlib.so +++ b/bin/newlib.so @@ -8,6 +8,11 @@ if [[ -z ${T} ]] || [[ -z ${2} ]] ; then exit 1 fi +if [ ! -e "$1" ] ; then + echo "!!! ${0##*/}: $1 does not exist" 1>&2 + exit 1 +fi + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec dolib.so "${T}/${2}" -- cgit v1.2.3-1-g7c22