[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cygwin: need to use the correct 'head.exe'
From: |
Charles Wilson |
Subject: |
Re: cygwin: need to use the correct 'head.exe' |
Date: |
Sat, 15 Mar 2003 01:10:18 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |
2nd attempt -- this time, simply use $SED -e '10q' instead of
$HEAD/head. Problem solved; $SED is just as fast, by my non-scientific
tests, as head.
--Chuck
2003-03-12 Charles Wilson <address@hidden>
* ltmain.in (win32_libid): use $SED, not head.
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.326
diff -u -r1.326 ltmain.in
--- ltmain.in 28 Feb 2003 15:27:35 -0000 1.326
+++ ltmain.in 13 Mar 2003 06:57:01 -0000
@@ -129,7 +129,7 @@
win32_libid_type="x86 archive import"
;;
*ar\ archive*) # could be an import, or static
- if eval $OBJDUMP -f $1 | head -n 10 2>/dev/null | \
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
win32_nmres=`eval $NM -f posix -A $1 | \
sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;}}'`