Separate out install/uninstall script generation
- Add new feature to niminst: scripts - build install scripts (based on csource feature) - Change install feature in koch to build the install scripts, then run install.sh - Don't track install scripts in Git.
This commit is contained in:
parent
29d0a774e9
commit
caf9140b23
3 changed files with 18 additions and 5 deletions
5
koch.nim
5
koch.nim
|
|
@ -36,6 +36,7 @@ Options:
|
|||
--help, -h shows this help and quits
|
||||
Possible Commands:
|
||||
boot [options] bootstraps with given command line options
|
||||
install [dir] installs to given directory
|
||||
clean cleans Nimrod project; removes generated files
|
||||
web generates the website
|
||||
csource [options] builds the C sources for installation
|
||||
|
|
@ -84,7 +85,9 @@ proc inno(args: string) =
|
|||
NimrodVersion)
|
||||
|
||||
proc install(args: string) =
|
||||
exec("sh ./build.sh")
|
||||
exec("nimrod cc -r tools/niminst/niminst --var:version=$# scripts compiler/nimrod.ini" %
|
||||
NimrodVersion)
|
||||
exec("sh ./install.sh $#" % args)
|
||||
|
||||
proc web(args: string) =
|
||||
exec(("nimrod cc -r tools/nimweb.nim web/nimrod --putenv:nimrodversion=$#" &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue