Lines Matching refs:kind
108 def append(self, cmd, kind): argument
113 if kind not in stepkinds:
115 'Template.append: bad kind %r' % (kind,)
116 if kind == SOURCE:
122 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd):
125 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd):
128 self.steps.append((cmd, kind))
130 def prepend(self, cmd, kind): argument
135 if kind not in stepkinds:
137 'Template.prepend: bad kind %r' % (kind,)
138 if kind == SINK:
144 if kind[0] == 'f' and not re.search(r'\$IN\b', cmd):
147 if kind[1] == 'f' and not re.search(r'\$OUT\b', cmd):
150 self.steps.insert(0, (cmd, kind))
198 for cmd, kind in steps:
199 list.append(['', cmd, kind, ''])
208 [cmd, kind] = list[0][1:3]
209 if kind[0] == 'f' and not infile:
213 [cmd, kind] = list[-1][1:3]
214 if kind[1] == 'f' and not outfile:
231 [inf, cmd, kind, outf] = item
232 if kind[1] == 'f':
234 if kind[0] == 'f':
236 if kind[0] == '-' and inf:
238 if kind[1] == '-' and outf:
244 [cmd, kind] = item[1:3]
246 if 'f' in kind: