view build/rm.d @ 305:3b79bd4298e8 signals

Fixed "make install" command on windows. http://www.dsource.org/forums/viewtopic.php?t=4931&sid=a9b3b6103c99ae05c76269fd7c6c5448
author Alexey Prokhin <alexey.prokhin@yandex.ru>
date Sat, 19 Dec 2009 18:43:32 +0300
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;
	 }
     }
 }