documentation updates
This commit is contained in:
parent
8b93e4132c
commit
5272213da4
7 changed files with 99 additions and 59 deletions
16
tools/restorecc.nim
Normal file
16
tools/restorecc.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
import os, strutils
|
||||
|
||||
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
|
||||
|
||||
main("dist/mingw_backup", paramStr(1))
|
||||
Loading…
Add table
Add a link
Reference in a new issue