Mercurial > projects > qtd
view build/rm.d @ 398:aa08a72d480a
Fixed construction of the ?--include-paths? generation argument in the build system.
Interestingly enough, it doesn't seem to have caused any problems so far.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 15 Jan 2011 22:52:06 +0100 |
parents | e78566595089 |
children |
line wrap: on
line source
import tango.io.FilePath; import tango.io.Stdout; import tango.text.Util; void main (char[][] args) { foreach(arg; args[1..$]) { try { auto a = replace(arg,'\\','/'); auto file = new FilePath(arg); if (file.exists()) { file.remove(); Stdout.format("'{}' removed", arg).newline; } } catch { Stdout.format("Error: '{}' don`t removed", arg).newline; } } }