apenwarr-redo/redo-always.py
Avery Pennarun 0da5c7c082 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.
2010-12-11 07:02:45 -08:00

16 lines
343 B
Python
Executable file

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