Update a target with a given command given a list of dependencies. target_update(target,deps,cmd) -> runs cmd if target is outdated. This is just a wrapper around target_outdated() which calls the given command if target is outdated.
(target, deps, cmd)
| 138 | |
| 139 | |
| 140 | def target_update(target, deps, cmd): |
| 141 | """Update a target with a given command given a list of dependencies. |
| 142 | |
| 143 | target_update(target,deps,cmd) -> runs cmd if target is outdated. |
| 144 | |
| 145 | This is just a wrapper around target_outdated() which calls the given |
| 146 | command if target is outdated.""" |
| 147 | |
| 148 | if target_outdated(target, deps): |
| 149 | os.system(cmd) |
| 150 | |
| 151 | #--------------------------------------------------------------------------- |
| 152 | # VCS related |
no test coverage detected
searching dependent graphs…