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:
parent
1d26d99e0c
commit
0da5c7c082
10 changed files with 45 additions and 7 deletions
16
redo-always.py
Executable file
16
redo-always.py
Executable 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue