summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2011-07-18 07:08:12 -0500
committerQt by Nokia <qt-info@nokia.com>2011-07-21 20:40:51 +0200
commit210211b7793bef626c085a354aa72ab6a397087b (patch)
treef65c17fabecbe814eee231748d0bf6c051f9e028
parent7f1d51a45d41a798041bd13200c2fe1ebac9673d (diff)
Close filehandle when done
Also add a fixme, since the version headers are currently being created in the source directory. Change-Id: If6e9eeba854a1f35561b69518eb8739dc28a58be Reviewed-on: http://codereview.qt.nokia.com/1763 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
-rwxr-xr-xbin/syncqt3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 776ee9c257..afa323869a 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -870,6 +870,7 @@ foreach my $lib (@modules_to_sync) {
my $modulepri = $modulepris{$lib};
if (-e $modulepri) {
my $modulepriname = basename($modulepri);
+ # 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";
@@ -882,6 +883,8 @@ foreach my $lib (@modules_to_sync) {
print MODULE_VERSION_HEADER_FILE "#define " .uc($lib) . "_VERSION $modulehexstring\n", ;
print MODULE_VERSION_HEADER_FILE "\n";
print MODULE_VERSION_HEADER_FILE "#endif // QT_". uc($lib) . "_VERSION_H\n";
+ close MODULE_VERSION_HEADER_FILE;
+ print "$moduleversionheader created for $lib\n" if(!$quiet);
} elsif ($modulepri) {
print "WARNING: Module $lib\'s pri file '$modulepri' not found.\nSkipped creating module version header for $lib.\n";
}