diff options
author | Araq <rumpf_a@web.de> | 2016-10-22 23:23:19 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-10-22 23:23:33 +0200 |
commit | f670ba2acc6cec85672f93c495d7574d0fab1781 (patch) | |
tree | b42ea91d7437c46786235a4cea9bbc0efe4ccb74 /tools/niminst | |
parent | 9f895c6f5a4133f6c06324be3f4032b273a48971 (diff) | |
download | Nim-f670ba2acc6cec85672f93c495d7574d0fab1781.tar.gz |
niminst works with gitlab
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/niminst.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim index ff9d8881d..66ea52447 100644 --- a/tools/niminst/niminst.nim +++ b/tools/niminst/niminst.nim @@ -313,7 +313,7 @@ proc parseIniFile(c: var ConfigData) = of cfgSectionStart: section = normalize(k.section) of cfgKeyValuePair: - var v = k.value % c.vars + var v = `%`(k.value, c.vars, {useEnvironment}) c.vars[k.key] = v case section @@ -621,7 +621,7 @@ proc xzDist(c: var ConfigData; windowsZip=false) = let proj = toLowerAscii(c.name) & "-" & c.version let tmpDir = if c.outdir.len == 0: "build" else: c.outdir - template processFile(destFile, src) = + proc processFile(destFile, src: string) = let dest = tmpDir / destFile echo "Copying ", src, " to ", dest if not existsFile(src): @@ -648,6 +648,10 @@ proc xzDist(c: var ConfigData; windowsZip=false) = var dir = buildDir(osA, cpuA) for k, f in walkDir("build" / dir): if k == pcFile: processFile(proj / dir / extractFilename(f), f) + else: + for f in items(c.cat[fcWinBin]): + let filename = f.extractFilename + processFile(proj / "bin" / filename, f) let osSpecific = if windowsZip: fcWindows else: fcUnix for cat in items({fcConfig..fcOther, osSpecific, fcNimble}): |