Skip to content

Commit

Permalink
Add redo-ifcreate to match djb's design.
Browse files Browse the repository at this point in the history
I'm not quite sure why this needs to be a separate program, however, so I'm
probably not testing it correctly.
  • Loading branch information
apenwarr committed Nov 13, 2010
1 parent 89449b9 commit 91cc82f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions redo-ifcreate
16 changes: 16 additions & 0 deletions redo-ifcreate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/python
import sys, os
import vars
from helpers import *


if not vars.TARGET:
sys.stderr.write('redo-ifcreate: error: must be run from inside a .do\n')
sys.exit(1)

for t in sys.argv[1:]:
mkdirp('%s/.redo' % vars.BASE)
if os.path.exists(t):
add_dep(vars.TARGET, 'm', t)
else:
add_dep(vars.TARGET, 'c', t)

0 comments on commit 91cc82f

Please sign in to comment.