Lines Matching +full:- +full:- +full:steps
4 ------------
8 conversion involves several steps (e.g. piping it through compress or
9 uuencode). Some of the conversion steps may require that their input
15 more conversion steps together. It will take care of creating and
22 different conversion steps and store them in a dictionary, for
27 -----------
34 where kind is a string of two characters: the first is '-' if the
52 where mode is 'r' to read the file, or 'w' to write it -- just like
53 for the built-in function open() or for os.popen().
75 STDIN_FILEOUT = '-f' # Must write a real file
76 FILEIN_STDOUT = 'f-' # Must read a real file
77 STDIN_STDOUT = '--' # Normal pipeline element
78 SOURCE = '.-' # Must be first, writes stdout
79 SINK = '-.' # Must be last, reads stdin
95 return '<Template instance, steps=%r>' % (self.steps,)
99 self.steps = []
105 t.steps = self.steps[:]
121 if self.steps and self.steps[-1][1] == SINK:
127 self.steps.append((cmd, kind))
137 if self.steps and self.steps[0][1] == SOURCE:
143 self.steps.insert(0, (cmd, kind))
158 if not self.steps:
160 if self.steps[-1][1] == SINK:
166 if not self.steps:
168 if self.steps[0][1] == SOURCE:
177 cmd = makepipeline(infile, self.steps, outfile)
180 cmd = 'set -x; ' + cmd
184 def makepipeline(infile, steps, outfile): argument
189 for cmd, kind in steps:
195 list.append(['', 'cat', '--', ''])
201 list.insert(0, ['', 'cat', '--', ''])
204 [cmd, kind] = list[-1][1:3]
206 list.append(['', 'cat', '--', ''])
207 list[-1][-1] = outfile
213 lkind = list[i-1][2]
219 list[i-1][-1] = list[i][0] = temp
227 if kind[0] == '-' and inf:
229 if kind[1] == '-' and outf:
244 rmcmd = 'rm -f'