Skip to content

Commit

Permalink
Add checks for archiving dependencies in builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 committed Jul 4, 2015
1 parent 17b5d01 commit 2998cc1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/builder.nim
Expand Up @@ -969,10 +969,19 @@ proc createFolders(state: PState) =
if not existsDir(state.cfg.websiteLoc / "commits" / state.cfg.platform):
dCreateDir(state.cfg.websiteLoc / "commits" / state.cfg.platform)

proc checkDepends() =
when defined(windows):
if findExe("7za") == "":
quit("Could not find 7za for archiving.")
else:
if findExe("zip") == "":
quit("Could not find zip for archiving.")

when isMainModule:
echo("Started builder: built at ", CompileDate, " ", CompileTime)
# TODO: Check for dependencies: unzip, zip, etc...

var state = builder.open(parseArgs())
checkDepends()
createFolders(state)
while true:
discard state.dispatcher.poll()
Expand Down

0 comments on commit 2998cc1

Please sign in to comment.