Add test for nim-libnx

This commit is contained in:
Joey Yakimowich-Payne 2018-07-08 10:07:10 +09:00
commit 2259a51d4e
2 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Package # Package
version = "0.2.2" version = "0.2.3"
author = "genotrance" author = "genotrance"
description = "c2nim helper to simplify and automate the wrapping of C libraries" description = "c2nim helper to simplify and automate the wrapping of C libraries"
license = "MIT" license = "MIT"

View file

@ -4,8 +4,12 @@ import strutils
var var
full = false full = false
comps = @["libsvm", "nim7z", "nimarchive", "nimbass", "nimbigwig", "nimfuzz", comps = @[
"nimpcre", "nimrax", "nimssl", "nimssh2"] "genotrance/libsvm", "genotrance/nim7z", "genotrance/nimarchive",
"genotrance/nimbass", "genotrance/nimbigwig", "genotrance/nimfuzz",
"genotrance/nimpcre", "genotrance/nimrax", "genotrance/nimssl",
"genotrance/nimssh2", "jyapayne/nim-libnx"
]
if detectOs(Windows): if detectOs(Windows):
comps.add("nimkerberos") comps.add("nimkerberos")
@ -20,7 +24,7 @@ if paramCount() > 2:
for comp in comps: for comp in comps:
if not dirExists(".."/comp): if not dirExists(".."/comp):
withDir(".."): withDir(".."):
exec "git clone --depth=1 https://github.com/genotrance/" & comp exec "git clone --depth=1 https://github.com/" & comp
exec "nimble uninstall -y " & comp, "", "" exec "nimble uninstall -y " & comp, "", ""
withDir(".."/comp): withDir(".."/comp):