Skip to content

Commit

Permalink
make koch build quietly
Browse files Browse the repository at this point in the history
  • Loading branch information
mogud committed Aug 28, 2016
1 parent 7aa6494 commit d6074a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions koch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ proc cleanAux(dir: string) =
for kind, path in walkDir(dir):
case kind
of pcFile:
var (dir, name, ext) = splitFile(path)
var (_, name, ext) = splitFile(path)
if ext == "" or cleanExt.contains(ext):
if not ignore.contains(name):
echo "removing: ", path
Expand Down Expand Up @@ -367,6 +367,7 @@ when defined(withUpdate):

# -------------- builds a release ---------------------------------------------

#[
proc run7z(platform: string, patterns: varargs[string]) =
const tmpDir = "nim-" & VersionAsString
createDir tmpDir
Expand All @@ -378,6 +379,7 @@ proc run7z(platform: string, patterns: varargs[string]) =
exec("7z a -tzip $1-$2.zip $1" % [tmpDir, platform])
finally:
removeDir tmpDir
]#

proc winRelease() =
boot(" -d:release")
Expand All @@ -396,7 +398,7 @@ proc winRelease() =

# -------------- 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) =
# we compile the tester with taintMode:on to have a basic
Expand Down

0 comments on commit d6074a7

Please sign in to comment.