From: Justin Erenkrantz Date: Wed, 28 Sep 2005 03:42:44 +0000 (+0000) Subject: Remove install errors emitted when using jlibtool instead of GNU libtool. X-Git-Tag: 2.3.0~2934 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efc39abf9540c6bf17ee957c033961d05eafcd6f;p=apache 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 --- 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