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)
| 207 | |
| 208 | |
| 209 | def target_update(target,deps,cmd): |
| 210 | """Update a target with a given command given a list of dependencies. |
| 211 | |
| 212 | target_update(target,deps,cmd) -> runs cmd if target is outdated. |
| 213 | |
| 214 | This is just a wrapper around target_outdated() which calls the given |
| 215 | command if target is outdated.""" |
| 216 | |
| 217 | if target_outdated(target,deps): |
| 218 | os.system(cmd) |
| 219 | |
| 220 | #--------------------------------------------------------------------------- |
| 221 | # Find scripts |
no test coverage detected