6,566
edits
(→Script: Newest version of the script.) |
(→Script: Bug fixes.) |
||
Line 119: | Line 119: | ||
for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3] + self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]: | for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3] + self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]: | ||
# The repository location. | # The repository location. | ||
if self.is_simgear(subsystem. | if self.is_simgear(subsystem.declaration_file_rel): | ||
path = SIMGEAR_PATH | path = SIMGEAR_PATH | ||
else: | else: | ||
Line 136: | Line 136: | ||
# The probable implementation file name. | # The probable implementation file name. | ||
file_name = subsystem.declaration_file[:-3] + "cxx" | file_name = subsystem.declaration_file[:-3] + "cxx" | ||
if not subsystem.root_path: | |||
if access( | file_name = path + sep + file_name | ||
if access(file_name, F_OK): | |||
# The Unix grep commands to run. | # The Unix grep commands to run. | ||
cmds = [ | cmds = [ | ||
'%s %s' % (grep_ctor, | '%s %s' % (grep_ctor, file_name), | ||
'%s %s {{!}} grep -v "return"' % (grep_any, | '%s %s {{!}} grep -v "return"' % (grep_any, file_name) | ||
] | ] | ||
Line 444: | Line 445: | ||
for subsystem in subsystem_list: | for subsystem in subsystem_list: | ||
# Code base selections. | # Code base selections. | ||
if self.is_simgear(subsystem. | if self.is_simgear(subsystem.declaration_file_rel) and not self.output_simgear: | ||
continue | continue | ||
if not self.is_simgear(subsystem. | if not self.is_simgear(subsystem.declaration_file_rel) and not self.output_flightgear: | ||
continue | continue | ||
Line 508: | Line 509: | ||
subsystem_groups_flightgear = 0 | subsystem_groups_flightgear = 0 | ||
for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3]: | for subsystem in self.subsystems[0] + self.subsystems[1] + self.subsystems[2] + self.subsystems[3]: | ||
if self.is_simgear(subsystem. | if self.is_simgear(subsystem.declaration_file_rel): | ||
subsystem_classes_simgear += 1 | subsystem_classes_simgear += 1 | ||
else: | else: | ||
subsystem_classes_flightgear += 1 | subsystem_classes_flightgear += 1 | ||
for group in self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]: | for group in self.groups[0] + self.groups[1] + self.groups[2] + self.groups[3]: | ||
if self.is_simgear(group. | if self.is_simgear(group.declaration_file_rel): | ||
subsystem_groups_simgear += 1 | subsystem_groups_simgear += 1 | ||
else: | else: | ||
Line 582: | Line 583: | ||
self.name = name | self.name = name | ||
self.base_class = base_class | self.base_class = base_class | ||
self.declaration_file_rel = declaration_file | |||
self.implementation_file = implementation_file | self.implementation_file = implementation_file | ||
if root_path: | if root_path: |