* mkstatic: Make sure that we are not cd'ed to temporary directory on exit to

avoid bogus warnings on directory cleanup.
* speclib: Ditto.
* mkimport: Ditto.
This commit is contained in:
Christopher Faylor 2011-02-11 18:00:55 +00:00
parent 0ff9e2473f
commit 98525461c8
4 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-02-11 Christopher Faylor <me+cygwin@cgf.cx>
* mkstatic: Make sure that we are not cd'ed to temporary directory on
exit to avoid bogus warnings on directory cleanup.
* speclib: Ditto.
* mkimport: Ditto.
2011-02-11 Christopher Faylor <me+cygwin@cgf.cx>
* cygwin.sc: Eliminate __cygheap_mid.

View File

@ -80,5 +80,8 @@ for my $f (keys %text) {
unlink $libdll;
system $ar, 'crus', $libdll, glob('*.o'), @ARGV;
unlink glob('*.o');
chdir '/tmp'; # Allow $dir directory removal on Windows
exit 1 if $?;
END {
chdir '/tmp'; # Allow $dir directory removal on Windows
}

View File

@ -55,5 +55,9 @@ exit 0;
sub xsystem(@) {
print join(' ', 'x', @_), "\n" if $x;
system(@_) == 0 or die "$0: @_[0] $_[1] $_[2]... exited with non-zero status\n";
system(@_) == 0 or die "$0: $_[0] $_[1] $_[2]... exited with non-zero status\n";
}
END {
chdir '/tmp'; # Allow $dir directory removal on Windows
}

View File

@ -76,3 +76,7 @@ $res = system $ar, 'crus', $lib, sort keys %extract;
unlink keys %extract;
die "$0: ar creation of $lib exited with non-zero status\n" if $res;
exit 0;
END {
chdir '/tmp'; # Allow $dir directory removal on Windows
}