From efc39abf9540c6bf17ee957c033961d05eafcd6f Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Wed, 28 Sep 2005 03:42:44 +0000 Subject: [PATCH] Remove install errors emitted when using jlibtool instead of GNU libtool. (grep would skip this silently; but sed emits errors when no match is found.) * build/instdso.sh: Protect sed calls with a test -s check to make sure that we're going to execute sed against a non-empty file. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@292109 13f79535-47bb-0310-9956-ffa450edef68 --- build/instdso.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/instdso.sh b/build/instdso.sh index 068419ad9d..0b2ab00da0 100755 --- a/build/instdso.sh +++ b/build/instdso.sh @@ -61,9 +61,12 @@ then exit 0 fi -DLNAME=`sed -n "/^dlname=/{s/.*='\([^']*\)'/\1/;p}" $TARGETDIR/$DSOARCHIVE_BASENAME` -LIBRARY_NAMES=`sed -n "/^library_names/{s/library_names='\([^']*\)'/\1/;p}" $TARGETDIR/$DSOARCHIVE_BASENAME` -LIBRARY_NAMES=`echo $LIBRARY_NAMES | sed -e "s/ *$DLNAME//g"` +if test -s "$TARGETDIR/$DSOARCHIVE_BASENAME" +then + DLNAME=`sed -n "/^dlname=/{s/.*='\([^']*\)'/\1/;p}" $TARGETDIR/$DSOARCHIVE_BASENAME` + LIBRARY_NAMES=`sed -n "/^library_names/{s/library_names='\([^']*\)'/\1/;p}" $TARGETDIR/$DSOARCHIVE_BASENAME` + LIBRARY_NAMES=`echo $LIBRARY_NAMES | sed -e "s/ *$DLNAME//g"` +fi if test -z "$DLNAME" then -- 2.50.0