summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-05-17 22:30:52 +0300
committerTor Lillqvist <tml@filifjonkan.site>2011-05-17 22:36:57 +0300
commit9298dd2cd28c4473beb391157461351a121d207d (patch)
treed792dc2ec67a25cd012020909ee647682f38d79d /download
parent3d97229173f40de402bdee53ef2299a7245f5580 (diff)
Don't overwrite config.log from the configure script
Diffstat (limited to 'download')
-rwxr-xr-xdownload18
1 files changed, 17 insertions, 1 deletions
diff --git a/download b/download
index c8a5ad88d94f..c74e00ed3e93 100755
--- a/download
+++ b/download
@@ -273,5 +273,21 @@ done
[ -x "post_download" ] || { echo "'post_download' script not found, run ./autogen.sh." ; exit 1 ; }
-./post_download --build=$BUILD_PLATFORM --host=$HOST_PLATFORM || exit 1
+# Save the config.log from the main configure script
+# and restore it after running post_download.
+mv config.log config.log.save
+
+./post_download --build=$BUILD_PLATFORM --host=$HOST_PLATFORM
+post_download_status=$?
+
+test -f config.log && mv config.log post_download.log
+mv config.log.save config.log
+
+exit $post_download_status
+
+# Local Variables:
+# tab-width: 4
+# indent-tabs-mode: nil
+# End:
+
# vim:set shiftwidth=4 softtabstop=4 expandtab: