6,566
edits
(→Script: Newest version of the script.) |
m (→Script: Pipe fix.) |
||
Line 127: | Line 127: | ||
ctor = "\<%s\>::\<%s\>[ \(]" % (subsystem.name, subsystem.name) | ctor = "\<%s\>::\<%s\>[ \(]" % (subsystem.name, subsystem.name) | ||
dtor = "\<%s\>::\~\<%s\>[ \(]" % (subsystem.name, subsystem.name) | dtor = "\<%s\>::\~\<%s\>[ \(]" % (subsystem.name, subsystem.name) | ||
grep_ctor = 'grep -rI "%s\ | grep_ctor = 'grep -rI "%s\{{!}}%s"' % (ctor, dtor) | ||
# The grep command for any function implementation. | # The grep command for any function implementation. | ||
Line 143: | Line 143: | ||
cmds = [ | cmds = [ | ||
'%s %s' % (grep_ctor, full_path), | '%s %s' % (grep_ctor, full_path), | ||
'%s %s | '%s %s {{!}} grep -v "return"' % (grep_any, full_path) | ||
] | ] | ||
Line 162: | Line 162: | ||
cmds = [ | cmds = [ | ||
'cd %s; %s' % (path, grep_ctor), | 'cd %s; %s' % (path, grep_ctor), | ||
'cd %s; %s | 'cd %s; %s {{!}} grep -v "return"' % (path, grep_any) | ||
] | ] | ||
Line 311: | Line 311: | ||
# The Unix grep command to run. | # The Unix grep command to run. | ||
cmd = 'cd %s; grep -rI %s "public \<%s\>" | cmd = 'cd %s; grep -rI %s "public \<%s\>" {{!}} grep -v "%s::"' % (path, self.grep_exclude_dir, base_name, base_name) | ||
pipe = Popen(cmd, shell=True, stdout=PIPE) | pipe = Popen(cmd, shell=True, stdout=PIPE) | ||