* speclib: Use correct EOF marker. Ensure that directory is actually deleted
when running under Windows.
This commit is contained in:
parent
268aec4006
commit
ffe0063843
|
@ -18,7 +18,7 @@ nm=$1; shift
|
||||||
ar=$1; shift
|
ar=$1; shift
|
||||||
libdll=$1; shift
|
libdll=$1; shift
|
||||||
cp /dev/null /tmp/$$.objs
|
cp /dev/null /tmp/$$.objs
|
||||||
trap "/bin/rm -rf $lib.bak /tmp/$$.dir /tmp/$$.syms /tmp/$$.objs /tmp/$$.raw" 0 1 2 15
|
trap "cd /tmp; /bin/rm -rf $lib.bak /tmp/$$.dir /tmp/$$.syms /tmp/$$.objs /tmp/$$.raw" 0 1 2 15
|
||||||
$nm --extern-only --defined-only $* | sed -n -e 's%^.* [TD] \(.*\)$%/ \1\$/p%p' > /tmp/$$.syms
|
$nm --extern-only --defined-only $* | sed -n -e 's%^.* [TD] \(.*\)$%/ \1\$/p%p' > /tmp/$$.syms
|
||||||
v || $nm -Ap --extern-only --defined-only $libdll | egrep ' I __head| I _.*_iname' | awk -F: '{print $2}' > /tmp/$$.objs
|
v || $nm -Ap --extern-only --defined-only $libdll | egrep ' I __head| I _.*_iname' | awk -F: '{print $2}' > /tmp/$$.objs
|
||||||
$nm -Ap --extern-only --defined-only $libdll | sed -n -f /tmp/$$.syms | awk -F: '{print $2}' >> /tmp/$$.objs
|
$nm -Ap --extern-only --defined-only $libdll | sed -n -f /tmp/$$.syms | awk -F: '{print $2}' >> /tmp/$$.objs
|
||||||
|
@ -49,4 +49,4 @@ BEGIN {
|
||||||
$lib = "__head_$lib" . "\0" x $pad;
|
$lib = "__head_$lib" . "\0" x $pad;
|
||||||
}
|
}
|
||||||
s/__head_cygwin1_dll/$lib/g;
|
s/__head_cygwin1_dll/$lib/g;
|
||||||
'EOF'
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue