Add a redo-always command: it adds an "always dirty" dependency to your target.

This is mostly useless except when combined with redo-stamp... I think.
This commit is contained in:
Avery Pennarun 2010-12-11 07:02:45 -08:00
commit 0da5c7c082
10 changed files with 45 additions and 7 deletions

16
redo-always.py Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/python
import sys, os
import vars, state
from helpers import err
try:
me = state.File(name=vars.TARGET)
me.add_dep('m', state.ALWAYS)
always = state.File(name=state.ALWAYS)
always.stamp = state.STAMP_MISSING
always.set_changed()
always.save()
state.commit()
except KeyboardInterrupt:
sys.exit(200)