summary refs log tree commit diff stats
path: root/build.bat
diff options
context:
space:
mode:
authorWay, No <noway@2ch.hk>2015-01-15 01:22:13 +1000
committerWay, No <noway@2ch.hk>2015-01-15 01:22:13 +1000
commitf7dc9492d9f4c8071a05475be759495149c489b4 (patch)
tree0495b8c1ddbfa122a4bfd61ce3f8eec02cb2b766 /build.bat
parent67d5bc6b0af9cdc5b256bb52e161c59e2c448ba8 (diff)
downloadNim-f7dc9492d9f4c8071a05475be759495149c489b4.tar.gz
added quick bootstrap script for windows
Diffstat (limited to 'build.bat')
-rwxr-xr-xbuild.bat20
1 files changed, 20 insertions, 0 deletions
diff --git a/build.bat b/build.bat
new file mode 100755
index 000000000..5214944c0
--- /dev/null
+++ b/build.bat
@@ -0,0 +1,20 @@
+
+if not exist "csources"(
+	git clone --depth 1 https://github.com/nim-lang/csources.git
+)
+
+cd "csources"
+if exist "C:\Program Files (x86)" (
+	call build64.bat
+) else (
+	call build.bat
+)
+
+cd ".."
+
+./bin/nim c koch
+./koch boot -d:release
+
+xcopy /Y install.bat.template install.bat
+
+pause
\ No newline at end of file