commit
7d76f49406
1 changed files with 4 additions and 2 deletions
6
koch.nim
6
koch.nim
|
|
@ -275,7 +275,7 @@ proc cleanAux(dir: string) =
|
||||||
for kind, path in walkDir(dir):
|
for kind, path in walkDir(dir):
|
||||||
case kind
|
case kind
|
||||||
of pcFile:
|
of pcFile:
|
||||||
var (dir, name, ext) = splitFile(path)
|
var (_, name, ext) = splitFile(path)
|
||||||
if ext == "" or cleanExt.contains(ext):
|
if ext == "" or cleanExt.contains(ext):
|
||||||
if not ignore.contains(name):
|
if not ignore.contains(name):
|
||||||
echo "removing: ", path
|
echo "removing: ", path
|
||||||
|
|
@ -367,6 +367,7 @@ when defined(withUpdate):
|
||||||
|
|
||||||
# -------------- builds a release ---------------------------------------------
|
# -------------- builds a release ---------------------------------------------
|
||||||
|
|
||||||
|
#[
|
||||||
proc run7z(platform: string, patterns: varargs[string]) =
|
proc run7z(platform: string, patterns: varargs[string]) =
|
||||||
const tmpDir = "nim-" & VersionAsString
|
const tmpDir = "nim-" & VersionAsString
|
||||||
createDir tmpDir
|
createDir tmpDir
|
||||||
|
|
@ -378,6 +379,7 @@ proc run7z(platform: string, patterns: varargs[string]) =
|
||||||
exec("7z a -tzip $1-$2.zip $1" % [tmpDir, platform])
|
exec("7z a -tzip $1-$2.zip $1" % [tmpDir, platform])
|
||||||
finally:
|
finally:
|
||||||
removeDir tmpDir
|
removeDir tmpDir
|
||||||
|
]#
|
||||||
|
|
||||||
proc winRelease() =
|
proc winRelease() =
|
||||||
boot(" -d:release")
|
boot(" -d:release")
|
||||||
|
|
@ -396,7 +398,7 @@ proc winRelease() =
|
||||||
|
|
||||||
# -------------- tests --------------------------------------------------------
|
# -------------- tests --------------------------------------------------------
|
||||||
|
|
||||||
template `|`(a, b): expr = (if a.len > 0: a else: b)
|
template `|`(a, b): string = (if a.len > 0: a else: b)
|
||||||
|
|
||||||
proc tests(args: string) =
|
proc tests(args: string) =
|
||||||
# we compile the tester with taintMode:on to have a basic
|
# we compile the tester with taintMode:on to have a basic
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue