From 6bc16904edd3738ab97573b9eeb3a6a7cce9574c Mon Sep 17 00:00:00 2001 From: "rumpf_a@web.de" <> Date: Sat, 20 Feb 2010 19:21:38 +0100 Subject: bugfixes for unicode; xmlparser; htmlparser; scanner --- koch.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'koch.nim') diff --git a/koch.nim b/koch.nim index e5d963b1e..bf07f3ba9 100644 --- a/koch.nim +++ b/koch.nim @@ -108,13 +108,13 @@ proc safeRemove(filename: string) = proc bootIteration(args: string): bool = var nimrod1 = "rod" / "nimrod1".exe safeRemove(nimrod1) - moveFile(nimrod1, "rod" / "nimrod".exe) + moveFile(dest=nimrod1, source="rod" / "nimrod".exe) exec "rod" / "nimrod1 cc $# $# rod/nimrod.nim" % [bootOptions, args] # Nimrod does not produce an executable again if nothing changed. That's ok: result = sameFileContent("rod" / "nimrod".exe, nimrod1) safeRemove("bin" / "nimrod".exe) var dest = "bin" / "nimrod".exe - copyFile(dest, "rod" / "nimrod".exe) + copyFile(dest=dest, source="rod" / "nimrod".exe) inclFilePermissions(dest, {fpUserExec}) safeRemove(nimrod1) if result: echo "executables are equal: SUCCESS!" -- cgit 1.4.1-2-gfad0