parent
aeb995fdc6
commit
7d4d25353c
|
@ -266,7 +266,7 @@ class NinjaRule:
|
||||||
# expand variables in command
|
# expand variables in command
|
||||||
command = ' '.join([self._quoter(x) for x in self.command + self.args])
|
command = ' '.join([self._quoter(x) for x in self.command + self.args])
|
||||||
estimate = len(command)
|
estimate = len(command)
|
||||||
for m in re.finditer(r'(\${\w*}|\$\w*)?[^$]*', command):
|
for m in re.finditer(r'(\${\w+}|\$\w+)?[^$]*', command):
|
||||||
if m.start(1) != -1:
|
if m.start(1) != -1:
|
||||||
estimate -= m.end(1) - m.start(1) + 1
|
estimate -= m.end(1) - m.start(1) + 1
|
||||||
chunk = m.group(1)
|
chunk = m.group(1)
|
||||||
|
|
Loading…
Reference in New Issue