diff options
author | Araq <rumpf_a@web.de> | 2017-02-26 23:16:43 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-26 23:25:50 +0100 |
commit | 7d1a96151c0fecfc73913f7cb4a5572fe4913c42 (patch) | |
tree | 76d64a205296105c07264bc34f2f6170711885df /tools/finish.nim | |
parent | 51ece61f034994f73d4fabaa6a5e9192936dd3a5 (diff) | |
download | Nim-7d1a96151c0fecfc73913f7cb4a5572fe4913c42.tar.gz |
finish tool can use 'nimgrab' tool to download the mingw version
Diffstat (limited to 'tools/finish.nim')
-rw-r--r-- | tools/finish.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/finish.nim b/tools/finish.nim index e39062b02..cdbbdabe5 100644 --- a/tools/finish.nim +++ b/tools/finish.nim @@ -30,8 +30,12 @@ proc unzip(): bool = proc downloadMingw(): DownloadResult = let curl = findExe"curl" + var cmd: string if curl.len > 0: - let cmd = curl & " --out " & "dist" / mingw & " " & url + cmd = curl & " --out " & "dist" / mingw & " " & url + elif fileExists"bin/nimgrab.exe": + cmd = "bin/nimgrab.exe " & url & " dist" / mingw + if cmd.len > 0: if execShellCmd(cmd) != 0: echo "download failed! ", cmd openDefaultBrowser(url) |