summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-02-20 09:40:12 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-20 13:25:46 +0100
commit4816c42115af62c500ff9825f8b5ea1d1515792f (patch)
treebb11b0d16aabe529a42c5c688a5addf58b7b9018 /bin
parentd2f1901807b68141755acf1ea23cecf774282708 (diff)
Ensure the directory exists to receive a deprecated header.
When creating a deprecated header, create the directory it will be located in, if it does not yet exist. Change-Id: Id0ac7327e7dfe5b3e34b431c7bc3844b72251a3d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 07b9d2432e..9129de053a 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -1130,6 +1130,9 @@ foreach my $lib (@modules_to_sync) {
my $guard = "DEPRECATED_HEADER_" . $lib . "_" . $header;
$guard =~ s/([^a-zA-Z0-9_])/_/g;
+ my $header_dir = dirname($header_path);
+ make_path($header_dir, $lib, $verbose_level);
+
open HEADER, ">$header_path" || die "Could not open $header_path for writing!\n";
print HEADER "#ifndef $guard\n";
print HEADER "#define $guard\n";