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:
Alain Kalker 2013-03-16 23:10:06 +01:00
commit caf9140b23
3 changed files with 18 additions and 5 deletions

View file

@ -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=$#" &