def main_redo_targets(redo_flavour, targets): import state from log import err if len(targets) != 0: err('%s: no arguments expected.\n', redo_flavour) return 1 for f in state.files(): if f.is_generated and f.exists(): print f.name
def main_redo_ood(redo_flavour, targets): import vars, state, deps from log import err if len(targets) != 0: err('%s: no arguments expected.\n', redo_flavour) return 1 for f in state.files(): if f.is_generated and f.exists(): if deps.isdirty(f, depth='', expect_stamp=f.stamp): print f.name
def main_redo_sources(redo_flavour, targets): import state from log import err if len(targets) != 0: err('%s: no arguments expected.\n', redo_flavour) return 1 for f in state.files(): if f.name.startswith('//'): continue # special name, ignore if not f.is_generated and f.exists(): print f.name
#!/usr/bin/env python import sys, os import vars_init vars_init.init([]) import state 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: print f.nicename()