path: root/bin
diff options
authorLincoln Ramsay <>2011-08-09 15:44:41 +1000
committerQt by Nokia <>2011-08-17 08:01:47 +0200
commit29a8761cd810b246374f2647ed85cdbcdba57c3b (patch)
treeb6bdfb582dac1eda0bb2f60b717be812ee4c82c8 /bin
parent94b6f1ad52e967961c034b6954df25ab86bb962b (diff)
Report an error when the version header can't be written
If sync.profile points to a location that does not exist in the %modules section, the version header cannot be written. Report the error clearly so this problem can be identified. Change-Id: Ib681087f46362487ffb621221d33cf9b7e54df2f Reviewed-on: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Michael Goddard <>
Diffstat (limited to 'bin')
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/syncqt b/bin/syncqt
index e5f93bd1c4..4eab929b30 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -900,7 +900,7 @@ foreach my $lib (@modules_to_sync) {
# FIXME: this creates a file in the source location for shadow-builds
my $moduleversionheader = "$modules{$lib}/" . lc($lib) . "version.h";
my $modulehexstring = sprintf("0x%02X%02X%02X", int($module_major_version), int($module_minor_version), int($module_patch_version));
- open MODULE_VERSION_HEADER_FILE, ">$moduleversionheader";
+ open MODULE_VERSION_HEADER_FILE, ">$moduleversionheader" or die "Can't open $moduleversionheader for writing";
print MODULE_VERSION_HEADER_FILE "/* This file was generated by syncqt with the info from sync.profile. */\n";
print MODULE_VERSION_HEADER_FILE "#ifndef QT_". uc($lib) . "_VERSION_H\n";
print MODULE_VERSION_HEADER_FILE "#define QT_". uc($lib) . "_VERSION_H\n";