summary refs log tree commit diff stats
path: root/tools/restorecc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tools/restorecc.nim')
-rw-r--r--tools/restorecc.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/restorecc.nim b/tools/restorecc.nim
index f5d8f0bb3..ff95427d8 100644
--- a/tools/restorecc.nim
+++ b/tools/restorecc.nim
@@ -1,16 +1,16 @@
 
 import os, strutils
 
-proc main(dir: string, wanted: string) =

-  for kind, path in walkDir(dir):

-    case kind

+proc main(dir: string, wanted: string) =
+  for kind, path in walkDir(dir):
+    case kind
     of pcFile:
       let name = extractFilename(path)
       if name == wanted:
         let newLoc = path.replace("mingw_backup", "mingw")
         echo "creating ", newLoc
-        copyFile(path, newLoc)

-    of pcDir: main(path, wanted)

-    else: discard

+        copyFile(path, newLoc)
+    of pcDir: main(path, wanted)
+    else: discard
 
 main("dist/mingw_backup", paramStr(1))