Add a new redo-ood command.

Prints the list of existing but out-of-date targets.
This commit is contained in:
Avery Pennarun 2010-12-19 03:17:18 -08:00
commit 3b19ccad9f
2 changed files with 18 additions and 0 deletions

17
redo-ood.py Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/python
import sys, os
import vars_init
vars_init.init([])
import vars, state, deps
from log import err
if len(sys.argv[1:]) != 0:
err('%s: no arguments expected.\n' % sys.argv[0])
sys.exit(1)
for f in state.files():
if f.is_generated and f.read_stamp() != state.STAMP_MISSING:
if deps.isdirty(f, depth='', max_changed=vars.RUNID):
print f.nicename()