diff scripts/miscellaneous/movefile.m @ 10549:95c3e38098bf

Untabify .m scripts
author Rik <code@nomad.inbox5.com>
date Fri, 23 Apr 2010 11:28:50 -0700
parents 3422f39573b1
children 4ecc7bc5bc83
line wrap: on
line diff
--- a/scripts/miscellaneous/movefile.m	Fri Apr 23 11:13:48 2010 -0700
+++ b/scripts/miscellaneous/movefile.m	Fri Apr 23 11:28:50 2010 -0700
@@ -84,37 +84,37 @@
     if (isdir && length(p1) > max_cmd_line)
       l2 = length(p2) + length (cmd) + 6;
       while (! isempty(f1))
-	p1 = sprintf ("\"%s\" ", f1{1});
-	f1(1) = [];
-	while (!isempty (f1) && (length(p1) + length(f1{1}) + l2 < 
-				 max_cmd_line))
-	  p1 = sprintf ("%s\"%s\" ", p1, f1{1});
-	  f1(1) = [];
-	endwhile 
+        p1 = sprintf ("\"%s\" ", f1{1});
+        f1(1) = [];
+        while (!isempty (f1) && (length(p1) + length(f1{1}) + l2 < 
+                                 max_cmd_line))
+          p1 = sprintf ("%s\"%s\" ", p1, f1{1});
+          f1(1) = [];
+        endwhile 
 
-	if (ispc () && ! isunix () && ! isempty (file_in_path (EXEC_PATH, "cp.exe")))
-	  p1 = strrep (p1, "\\", "/");
-	  p2 = strrep (p2, "\\", "/");
-	endif
+        if (ispc () && ! isunix () && ! isempty (file_in_path (EXEC_PATH, "cp.exe")))
+          p1 = strrep (p1, "\\", "/");
+          p2 = strrep (p2, "\\", "/");
+        endif
 
-	## Move the file(s).
-	[err, msg] = system (sprintf ("%s %s \"%s\"", cmd, p1, p2));
-	if (err < 0)
-	  status = false;
-	  msgid = "movefile";
-	endif
+        ## Move the file(s).
+        [err, msg] = system (sprintf ("%s %s \"%s\"", cmd, p1, p2));
+        if (err < 0)
+          status = false;
+          msgid = "movefile";
+        endif
       endwhile
     else
       if (ispc () && ! isunix () && ! isempty (file_in_path (EXEC_PATH, "cp.exe")))
-	p1 = strrep (p1, "\\", "/");
-	p2 = strrep (p2, "\\", "/");
+        p1 = strrep (p1, "\\", "/");
+        p2 = strrep (p2, "\\", "/");
       endif
 
       ## Move the file(s).
       [err, msg] = system (sprintf ("%s %s \"%s\"", cmd, p1, p2));
       if (err < 0)
-	status = false;
-	msgid = "movefile";
+        status = false;
+        msgid = "movefile";
       endif
     endif
   else