* speclib: Ensure that temporary def file is removed.

This commit is contained in:
Christopher Faylor 2002-01-24 21:39:09 +00:00
parent 3aad7c8a62
commit dfb4c34707
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-01-24 Christopher Faylor <cgf@redhat.com>
* speclib: Ensure that temporary def file is removed.
2002-01-23 Christopher Faylor <cgf@redhat.com>
* speclib: Use rm -f to remove temp file just to quiet any potential

View File

@ -20,4 +20,4 @@ def=$1; shift
trap "rm -f /tmp/$$.def" 0 1 2 15
(echo "LIBRARY cygwin1.dll
EXPORTS"; $nm --extern-only --defined-only $* | sed -e '/^[ ]*$/d' -e '/:$/d' -e 's/^.* _\(.*\)/\1/' | grep $v -f - -w $def |egrep -vi '^library|exports|^$' | sort) > /tmp/$$.def
exec $dlltool --as=$as -d /tmp/$$.def -l "$lib"
$dlltool --as=$as -d /tmp/$$.def -l "$lib"