summaryrefslogtreecommitdiffstats
path: root/bin/createpackage.pl
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2010-02-23 14:42:18 (GMT)
committeraxis <qt-info@nokia.com>2010-02-23 14:42:18 (GMT)
commitffe8b623d99f1d5d6af3ba660ad6749ff96cc19c (patch)
treea15ff19f8d2cea05ad65e402468be070126b67c7 /bin/createpackage.pl
parenta31e40295d5f6e4bc54f8831ca0d0303e4b066d4 (diff)
downloadQt-ffe8b623d99f1d5d6af3ba660ad6749ff96cc19c.zip
Qt-ffe8b623d99f1d5d6af3ba660ad6749ff96cc19c.tar.gz
Qt-ffe8b623d99f1d5d6af3ba660ad6749ff96cc19c.tar.bz2
Made createpackage.pl return error when one of the tools fail.
Not strictly necessary for normal building, but nice to catch build system bugs.
Diffstat (limited to 'bin/createpackage.pl')
-rwxr-xr-xbin/createpackage.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/createpackage.pl b/bin/createpackage.pl
index 3ab3909..3a61bc0 100755
--- a/bin/createpackage.pl
+++ b/bin/createpackage.pl
@@ -273,13 +273,15 @@ if($stub) {
system ("makesis -s $pkgoutput $stub_sis_name");
} else {
# Create SIS.
- system ("makesis $pkgoutput $unsigned_sis_name");
+ # The 'and' is because system uses 0 to indicate success.
+ system ("makesis $pkgoutput $unsigned_sis_name") and die ("makesis failed");
print("\n");
# Sign SIS with certificate info given as an argument.
my $relcert = File::Spec->abs2rel($certificate);
my $relkey = File::Spec->abs2rel($key);
- system ("signsis $unsigned_sis_name $signed_sis_name $relcert $relkey $passphrase");
+ # The 'and' is because system uses 0 to indicate success.
+ system ("signsis $unsigned_sis_name $signed_sis_name $relcert $relkey $passphrase") and die ("signsis failed");
# Check if creating signed SIS Succeeded
stat($signed_sis_name);