summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-16 09:11:24 +0200
committerAraq <rumpf_a@web.de>2011-04-16 09:11:24 +0200
commite487c0a2491fcc144cb47b54597a320e2bf79866 (patch)
treeba6c6789ca82eb69873005a88d18630cffcff2f7 /koch.nim
parentcd292568d775d55d9abb51e962882ecda12c03a9 (diff)
downloadNim-e487c0a2491fcc144cb47b54597a320e2bf79866.tar.gz
better error message for invalid module names
Diffstat (limited to 'koch.nim')
-rwxr-xr-xkoch.nim18
1 files changed, 1 insertions, 17 deletions
diff --git a/koch.nim b/koch.nim
index c54a5155c..d81e93af9 100755
--- a/koch.nim
+++ b/koch.nim
@@ -33,7 +33,6 @@ Possible Commands:
   csource [options]        builds the C sources for installation
   zip                      builds the installation ZIP package
   inno [options]           builds the Inno Setup installer
-  git                      removes and adds generated C files to git
 Boot options:
   -d:release               produce a release version of the compiler
   -d:tinyc                 include the Tiny C backend (not supported on Windows)
@@ -77,17 +76,6 @@ proc web(args: string) =
   exec("nimrod cc -r tools/nimweb.nim web/nimrod --putenv:nimrodversion=$#" %
        NimrodVersion)
 
-proc gitAux(dir: string) = 
-  for kind, path in walkDir(dir):
-    if kind == pcDir: 
-      var cfiles = path / "*.c"
-      when false: exec("git rm " & cfiles)
-      exec("git add " & cfiles)
-      gitAux(path)
-
-proc git = 
-  gitAux("build")
-
 # -------------- boot ---------------------------------------------------------
 
 const
@@ -97,10 +85,7 @@ proc findStartNimrod: string =
   # we try several things before giving up:
   # * bin/nimrod
   # * $PATH/nimrod
-  # * bin/nim
-  # If these fail, we build nimrod with the "build.sh" script
-  # (but only on UNIX). Otherwise we try to compile "nim" with FPC 
-  # and use "bin/nim".
+  # If these fail, we try to build nimrod with the "build.(sh|bat)" script.
   var nimrod = "nimrod".exe
   result = "bin" / nimrod
   if ExistsFile(result): return
@@ -204,7 +189,6 @@ of cmdArgument:
   of "zip": zip(op.cmdLineRest)
   of "inno": inno(op.cmdLineRest)
   of "install": install(op.cmdLineRest)
-  of "git": git()
   else: showHelp()
 of cmdEnd: showHelp()