From f7dc9492d9f4c8071a05475be759495149c489b4 Mon Sep 17 00:00:00 2001 From: "Way, No" Date: Thu, 15 Jan 2015 01:22:13 +1000 Subject: [PATCH] added quick bootstrap script for windows --- build.bat | 20 ++++++++++++++++++++ install.bat.template | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100755 build.bat create mode 100755 install.bat.template diff --git a/build.bat b/build.bat new file mode 100755 index 0000000000..5214944c09 --- /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 diff --git a/install.bat.template b/install.bat.template new file mode 100755 index 0000000000..f49c898cc4 --- /dev/null +++ b/install.bat.template @@ -0,0 +1,6 @@ + +if not "%1"=="" ( + ./koch install %1 +) else ( + ./koch install +)