Create sJOB_BASE_DIR if it doesn't exist
authorroyt <tathagatar@symbian.org>
Mon, 29 Jun 2009 14:21:49 +0100
changeset 23 435ecee4ea5d
parent 22 7a9425957569
child 25 234b5eb2dcfe
Create sJOB_BASE_DIR if it doesn't exist
build_package.pl
--- a/build_package.pl	Fri Jun 26 18:34:34 2009 +0100
+++ b/build_package.pl	Mon Jun 29 14:21:49 2009 +0100
@@ -75,6 +75,7 @@
 $sLabelBaseString =~ m,.*[\\/]([^\\^/]+),;
 my $sJobLabel = $1;
 $sJobLabel = $sLabelBaseString if (! $1);
+mkdir($sJOB_BASE_DIR) if (!-d$sJOB_BASE_DIR);
 my $sJobDir = mkdir_unique("$sJOB_BASE_DIR\\$sJobLabel");
 print "Created project dir $sJOB_BASE_DIR\\$sJobLabel\n";