Ensure Env.Host.sh always return a zero exit code

* On some NetBSD systems, the last unset command returns a
  non-zero exit code

* This made the make(1) processes terminate immediately in
  source-env-and-recurse, breaking the build.

Reported by: Thomas Klausner <wiz@NetBSD.org>
This commit is contained in:
François Tigeot
2012-01-25 18:50:35 +01:00
parent bb51e8e72b
commit a79889083b

View File

@@ -1102,6 +1102,9 @@ ToFile( "ENV_SCRIPT", "$outfile", "e" );
#
print OUT "export $exportvars$newline";
print OUT "unset $unsetvars$newline";
# unset may return a non-zero value and make the initial
# make(1) processes terminate with an error
print OUT "true $newline";
#
#---------------------------