apenwarr-redo/redo-targets.py
Avery Pennarun f2d34fa685 New redo-sources and redo-targets commands.
Suggested by djb in personal email, and on the mailing list.  redo-targets
lists all the targets in the database; redo-sources lists all the existing
sources (ie. files that are referred to but which aren't targets).

redo-ifcreate filenames aren't included in the redo-sources list.
2010-12-19 03:50:38 -08:00

16 lines
319 B
Python
Executable file

#!/usr/bin/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()