Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-28 23:51:11 +0300
committerChristopher Faylor <me@cgf.cx>2003-11-28 23:51:11 +0300
commitffe006384344b5d2a86e6bedad96725391cfe88e (patch)
treeaa40953764872dd02b2fc6b7fba16ae5a8dc241e
parent268aec400620cf7bef2a9aef0cd694c87800a077 (diff)
* speclib: Use correct EOF marker. Ensure that directory is actually deleted
when running under Windows.
-rwxr-xr-xwinsup/cygwin/speclib4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/speclib b/winsup/cygwin/speclib
index 9de9f50c4..6642414e7 100755
--- a/winsup/cygwin/speclib
+++ b/winsup/cygwin/speclib
@@ -18,7 +18,7 @@ nm=$1; shift
ar=$1; shift
libdll=$1; shift
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
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
@@ -49,4 +49,4 @@ BEGIN {
$lib = "__head_$lib" . "\0" x $pad;
}
s/__head_cygwin1_dll/$lib/g;
-'EOF'
+EOF