aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2011-04-28 14:22:30 +1000
committeraxis <qt-info@nokia.com>2011-05-03 13:47:51 +0200
commitd3f10a82ffc3dd47afa882e70c7bb733f1e6bd5e (patch)
tree14c1077859aeb7d2e5b48f1e70ff541390c41c48 /configure
parent984400a5865ceee22ee2c7e2a4b09f2ddef6fc1d (diff)
Don't assume that commands succeed
Signed-off-by: axis <qt-info@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 5ca40f38..0c3a2685 100755
--- a/configure
+++ b/configure
@@ -51,7 +51,8 @@ if (! -e "$relpath/qtbase/configure") {
ensureDir("$outpath/qtbase");
chdir("$outpath/qtbase");
-system_v("$relpath/qtbase/configure @ARGV");
+my $ret = system_v("$relpath/qtbase/configure @ARGV");
+exit $ret unless ($ret == 0);
chdir("$outpath");
@@ -59,6 +60,5 @@ open QMAKE_CACHE, ">.qmake.cache" || die "Could not open .qmake.cache for writin
print QMAKE_CACHE "include(\$\$PWD/qtbase/.qmake.cache)\n";
close QMAKE_CACHE;
-system_v("$outpath/qtbase/bin/qmake $relpath/qt.pro");
-
-exit 0;
+$ret = system_v("$outpath/qtbase/bin/qmake $relpath/qt.pro");
+exit $ret;