diff options
author | Araq <rumpf_a@web.de> | 2018-09-22 17:19:30 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-22 17:19:30 +0200 |
commit | b2b9af6a5083203d37ec3379d841ec8dc08e6674 (patch) | |
tree | 2cb9ffb65d485470815d4cc719ffbc0bf084679b /koch.nim | |
parent | b2727d03a6aca88a00271475ea7d35e6052f5f87 (diff) | |
download | Nim-b2b9af6a5083203d37ec3379d841ec8dc08e6674.tar.gz |
koch: add a --stable flag to build Nimble; refs #9017
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/koch.nim b/koch.nim index f63613c97..a3d077c30 100644 --- a/koch.nim +++ b/koch.nim @@ -41,6 +41,7 @@ Usage: Options: --help, -h shows this help and quits --latest bundle the installers with a bleeding edge Nimble + --stable bundle the installers with a stable Nimble Possible Commands: boot [options] bootstraps with given command line options distrohelper [bindir] helper for distro packagers @@ -509,12 +510,14 @@ proc showHelp() = when isMainModule: var op = initOptParser() var latest = false + var stable = false while true: op.next() case op.kind of cmdLongOption, cmdShortOption: case normalize(op.key) of "latest": latest = true + of "stable": stable = true else: showHelp() of cmdArgument: case normalize(op.key) @@ -537,9 +540,13 @@ when isMainModule: of "temp": temp(op.cmdLineRest) of "xtemp": xtemp(op.cmdLineRest) of "wintools": bundleWinTools() - of "nimble": buildNimble(existsDir(".git") or latest) + of "nimble": + if stable: buildNimble(false) + else: buildNimble(existsDir(".git") or latest) of "nimsuggest": bundleNimsuggest(buildExe=true) - of "tools": buildTools(existsDir(".git") or latest) + of "tools": + if stable: buildTools(false) + else: buildTools(existsDir(".git") or latest) of "pushcsource", "pushcsources": pushCsources() of "valgrind": valgrind(op.cmdLineRest) else: showHelp() |