httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r189595 - /httpd/httpd/trunk/build/instdso.sh
Date Wed, 08 Jun 2005 15:37:55 GMT
Author: jorton
Date: Wed Jun  8 08:37:55 2005
New Revision: 189595

URL: http://svn.apache.org/viewcvs?rev=189595&view=rev
Log:
* build/instdso.sh: Extract LIBRARY_NAMES and DLNAME without using
grep; fix extraction of LIBRARY_NAMES which was sedding the wrong
variable name.

Modified:
    httpd/httpd/trunk/build/instdso.sh

Modified: httpd/httpd/trunk/build/instdso.sh
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/build/instdso.sh?rev=189595&r1=189594&r2=189595&view=diff
==============================================================================
--- httpd/httpd/trunk/build/instdso.sh (original)
+++ httpd/httpd/trunk/build/instdso.sh Wed Jun  8 08:37:55 2005
@@ -61,8 +61,8 @@
     exit 0
 fi
 
-DLNAME=`grep "^dlname" $TARGETDIR/$DSOARCHIVE_BASENAME | sed -e "s/dlname='\([^']*\)'/\1/"`
-LIBRARY_NAMES=`grep "library_names" $TARGETDIR/$DSOARCHIVE_BASENAME | sed -e "s/dlname='\([^']*\)'/\1/"`
+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 -z "$DLNAME"



Mime
View raw message