32 |
32 |
33 my $ROOT_SYSDEF = "packages\\$codeline\\os\\deviceplatformrelease\\foundation_system\\system_model\\system_definition.xml"; |
33 my $ROOT_SYSDEF = "packages\\$codeline\\os\\deviceplatformrelease\\foundation_system\\system_model\\system_definition.xml"; |
34 |
34 |
35 # Full model in schema 3.0.0 format, including all of the test units. |
35 # Full model in schema 3.0.0 format, including all of the test units. |
36 print "\n\n### GENERATE FULL MODEL ###\n"; |
36 print "\n\n### GENERATE FULL MODEL ###\n"; |
|
37 my $updatehifi_cmd = "hg -R packages update -r HighFidelityModel"; |
|
38 print "$updatehifi_cmd\n"; |
|
39 system($updatehifi_cmd); |
37 my $full_cmd = "$XALAN_C -o $codeline\\full_system_model_3.0.xml $ROOT_SYSDEF $SYSDEFTOOLS_PATH\\joinsysdef.xsl"; |
40 my $full_cmd = "$XALAN_C -o $codeline\\full_system_model_3.0.xml $ROOT_SYSDEF $SYSDEFTOOLS_PATH\\joinsysdef.xsl"; |
38 print "$full_cmd\n"; |
41 print "$full_cmd\n"; |
39 system($full_cmd); |
42 system($full_cmd); |
40 |
43 |
41 # Filter the model to remove the test and techview units |
44 # Filter the model to remove the test and techview units |
89 mkdir("platforms\\$codeline\\single\\sysdefs\\auto") if (!-d "platforms\\$codeline\\single\\sysdefs\\auto"); |
92 mkdir("platforms\\$codeline\\single\\sysdefs\\auto") if (!-d "platforms\\$codeline\\single\\sysdefs\\auto"); |
90 system("copy $codeline\\system_model.xml platforms\\$codeline\\single\\sysdefs\\auto\\model_$timestamp\_$changeset.xml"); |
93 system("copy $codeline\\system_model.xml platforms\\$codeline\\single\\sysdefs\\auto\\model_$timestamp\_$changeset.xml"); |
91 system("hg -R platforms add"); |
94 system("hg -R platforms add"); |
92 system("hg -R platforms commit -m \"Add auto generated $codeline system model (packages\@$changeset)\" -u\"Dario Sestito <darios\@symbian.org>\""); |
95 system("hg -R platforms commit -m \"Add auto generated $codeline system model (packages\@$changeset)\" -u\"Dario Sestito <darios\@symbian.org>\""); |
93 system("hg -R platforms push http://darios:symbian696b\@developer.symbian.org/oss/MCL/sftools/fbf/projects/platforms"); |
96 system("hg -R platforms push http://darios:symbian696b\@developer.symbian.org/oss/MCL/sftools/fbf/projects/platforms"); |
|
97 |
|
98 # Split model into package models |
|
99 print "\n\n### SPLIT MODEL INTO PACKAGE MODELS ###\n"; |
|
100 my $updatedefault_cmd = "hg -R packages update -r default"; |
|
101 print "$updatedefault_cmd\n"; |
|
102 system($updatedefault_cmd); |
|
103 my $splitmodel_cmd = "perl ..\\split_sysdef.pl -s $codeline\\system_model.xml -o packages\\$codeline"; |
|
104 print "$splitmodel_cmd\n"; |
|
105 system($splitmodel_cmd); |
|
106 my $diff_cmd = "hg -R packages diff --stat"; |
|
107 print "$diff_cmd\n"; |
|
108 my @diff_output = `$diff_cmd`; |
|
109 if (@diff_output) |
|
110 { |
|
111 my $add_cmd = "hg -R packages add"; |
|
112 print "$add_cmd\n"; |
|
113 system($add_cmd); |
|
114 my $commit_cmd = "hg -R packages commit -m \"Update package models from auto generated system model (packages\@$changeset)\" -u\"Dario Sestito <darios\@symbian.org>\""; |
|
115 print "$commit_cmd\n"; |
|
116 system($commit_cmd); |
|
117 my $push_cmd = "hg -R packages push http://darios:symbian696b\@developer.symbian.org/oss/MCL/sftools/fbf/projects/packages"; |
|
118 print "$push_cmd\n"; |
|
119 system($push_cmd); |
|
120 } |
94 } |
121 } |
95 } |
122 } |
96 |
123 |