added 'website' option to koch for convenience
This commit is contained in:
parent
f45093893d
commit
3ee048eaad
4 changed files with 19 additions and 8 deletions
8
koch.nim
8
koch.nim
|
|
@ -42,7 +42,8 @@ Possible Commands:
|
|||
boot [options] bootstraps with given command line options
|
||||
install [bindir] installs to given directory
|
||||
clean cleans Nimrod project; removes generated files
|
||||
web [options] generates the website
|
||||
web [options] generates the website and the full documentation
|
||||
website [options] generates only the website
|
||||
csource [options] builds the C sources for installation
|
||||
zip builds the installation ZIP package
|
||||
nsis [options] builds the NSIS Setup installer (for Windows)
|
||||
|
|
@ -124,6 +125,10 @@ proc web(args: string) =
|
|||
exec("$# cc -r tools/nimweb.nim $# web/nim --putenv:nimversion=$#" %
|
||||
[findNim(), args, VersionAsString])
|
||||
|
||||
proc website(args: string) =
|
||||
exec("$# cc -r tools/nimweb.nim $# --website web/nim --putenv:nimversion=$#" %
|
||||
[findNim(), args, VersionAsString])
|
||||
|
||||
# -------------- boot ---------------------------------------------------------
|
||||
|
||||
const
|
||||
|
|
@ -345,6 +350,7 @@ of cmdArgument:
|
|||
of "boot": boot(op.cmdLineRest)
|
||||
of "clean": clean(op.cmdLineRest)
|
||||
of "web": web(op.cmdLineRest)
|
||||
of "website": website(op.cmdLineRest)
|
||||
of "csource", "csources": csource(op.cmdLineRest)
|
||||
of "zip": zip(op.cmdLineRest)
|
||||
of "nsis": nsis(op.cmdLineRest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue