Rename redo-oob to redo-unlocked, to more accurately represent its use.
It's still undocumented. Because you shouldn't run it by hand. So don't! It's dangerous!
This commit is contained in:
parent
ca7a1de4e3
commit
db4c4fc17a
5 changed files with 22 additions and 13 deletions
30
redo-oob.py
30
redo-oob.py
|
|
@ -1,30 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
import sys, os
|
||||
import state
|
||||
from log import err
|
||||
|
||||
if len(sys.argv[1:]) < 2:
|
||||
err('%s: at least 2 arguments expected.\n' % sys.argv[0])
|
||||
sys.exit(1)
|
||||
|
||||
target = sys.argv[1]
|
||||
deps = sys.argv[2:]
|
||||
|
||||
for d in deps:
|
||||
assert(d != target)
|
||||
|
||||
me = state.File(name=target)
|
||||
|
||||
os.environ['REDO_NO_OOB'] = '1'
|
||||
argv = ['redo-ifchange'] + deps
|
||||
rv = os.spawnvp(os.P_WAIT, argv[0], argv)
|
||||
if rv:
|
||||
sys.exit(rv)
|
||||
|
||||
# we know our caller already owns the lock on target, so we don't have to
|
||||
# acquire another one.
|
||||
os.environ['REDO_UNLOCKED'] = '1'
|
||||
argv = ['redo-ifchange', target]
|
||||
rv = os.spawnvp(os.P_WAIT, argv[0], argv)
|
||||
if rv:
|
||||
sys.exit(rv)
|
||||
Loading…
Add table
Add a link
Reference in a new issue