view build/rm.d @ 242:f2f4c9cbadc2

Fix #28. You cannot build in the sources folder by default but can override this behavior using ALLOW_IN_SOURCE_BUILDS option. However, in this case you'll have to use 'cmake . && make' instead of make. Otherwise, the generator won't start.
author SokoL_SD
date Mon, 20 Jul 2009 09:33:10 +0000
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;
	 }
     }
 }