change destination directory for auto generated model to sydefs\auto
authorAndy Simpson<andrew.simpson@symbian.com>
Tue, 25 May 2010 12:45:08 +0100
changeset 1072 48e2f89df0ad
parent 1071 12d6ff1e30cc
child 1073 ac18844eb787
change destination directory for auto generated model to sydefs\auto
generate_system_models.pl
--- a/generate_system_models.pl	Wed May 19 14:48:47 2010 +0100
+++ b/generate_system_models.pl	Tue May 25 12:45:08 2010 +0100
@@ -65,7 +65,8 @@
 	mkdir("platforms\\$codeline") if (!-d "platforms\\$codeline");
 	mkdir("platforms\\$codeline\\single") if (!-d "platforms\\$codeline\\single");
 	mkdir("platforms\\$codeline\\single\\sysdefs") if (!-d "platforms\\$codeline\\single\\sysdefs");
-	my $updatesysdef_cmd = "copy /Y $codeline\\system_model.xml platforms\\$codeline\\single\\sysdefs\\system_model.xml";
+	mkdir("platforms\\$codeline\\single\\sysdefs\\auto") if (!-d "platforms\\$codeline\\single\\sysdefs\\auto");
+	my $updatesysdef_cmd = "copy /Y $codeline\\system_model.xml platforms\\$codeline\\single\\sysdefs\\auto\\system_model.xml";
 	print "$updatesysdef_cmd\n";
 	system($updatesysdef_cmd);
 	system("hg -R platforms add"); # just in case this is a new platform
@@ -74,6 +75,7 @@
 	my @diff_output = `$diff_cmd`;
 	if (@diff_output)
 	{
+		system("hg -R platforms add");
 		system("hg -R platforms commit -m \"Add auto generated $codeline system model (packages\@$packages_changeset)\" -u\"Dario Sestito <darios\@symbian.org>\"");
 		system("hg -R platforms push http://darios:symbian696b\@developer.symbian.org/oss/MCL/sftools/fbf/projects/platforms");