view build/rm.d @ 399:e40f33cc0bf5

Explicitly include qglobal.h before all the ?master includes?. This makes sure that macros like Q_CORE_EXPORT are already defined for all parsed header files. Starting with this commit, QtD should build successfully against the pre-built Cocoa packages on OS X 10.6.
author David Nadlinger <code@klickverbot.at>
date Sun, 16 Jan 2011 00:56:21 +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;
	 }
     }
 }