summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVarriount <Varriount@users.noreply.github.com>2015-01-17 19:24:32 -0500
committerVarriount <Varriount@users.noreply.github.com>2015-01-17 19:24:32 -0500
commit4a9647d4dbe3c0a97dc912b06d24d20a61e8f2d8 (patch)
tree1e7259087b956c276362de9f40e72b2572193440
parenteb929bd61c94fc5acf7e384502706fc41a4df2fd (diff)
parentbc97493102901790155c819d0bcdcab9d7c8ebdf (diff)
downloadNim-4a9647d4dbe3c0a97dc912b06d24d20a61e8f2d8.tar.gz
Merge pull request #1980 from Araq/revert-1951-bootstrap-install-docs-fix
Revert "Documented faster way to bootstrap-build Nim"
-rwxr-xr-xbuild.bat22
-rw-r--r--[-rwxr-xr-x]build.sh0
-rwxr-xr-xinstall.bat.template6
-rw-r--r--install.txt2
-rw-r--r--readme.md18
-rw-r--r--web/download.txt8
6 files changed, 17 insertions, 39 deletions
diff --git a/build.bat b/build.bat
deleted file mode 100755
index b68d626f6..000000000
--- a/build.bat
+++ /dev/null
@@ -1,22 +0,0 @@
-
-if not exist "csources"(
-	git clone --depth 1 https://github.com/nim-lang/csources.git
-)
-
-cd "csources"
-
-for /f "skip=1 delims=" %%x in ('wmic cpu get addresswidth') do if not defined AddressWidth set AddressWidth=%%x
-if %AddressWidth%==64 (
-	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/build.sh b/build.sh
index 139c28359..139c28359 100755..100644
--- a/build.sh
+++ b/build.sh
diff --git a/install.bat.template b/install.bat.template
deleted file mode 100755
index f49c898cc..000000000
--- a/install.bat.template
+++ /dev/null
@@ -1,6 +0,0 @@
-
-if not "%1"=="" (
-	./koch install %1
-) else (
-	./koch install
-)
diff --git a/install.txt b/install.txt
index f308ef12f..deca55599 100644
--- a/install.txt
+++ b/install.txt
@@ -17,7 +17,7 @@ works.
 
 Then run the following command::
 
-  ./build.sh
+  sh build.sh
 
 Unlike other software, Nim does not distribute its files over the whole file
 hierarchy. This has the advantage that you can deinstall it by just deleting
diff --git a/readme.md b/readme.md
index 7790f4a3f..d5968982b 100644
--- a/readme.md
+++ b/readme.md
@@ -29,21 +29,23 @@ To build from source you will need:
 
 If you are on a fairly modern *nix system, the following steps should work:
 
-```bash
+```
 $ git clone git://github.com/Araq/Nim.git
 $ cd Nim
-$ ./build.sh
+$ git clone --depth 1 git://github.com/nim-lang/csources
+$ cd csources && sh build.sh
+$ cd ..
+$ bin/nim c koch
+$ ./koch boot -d:release
 ```
 
-``./koch install [dir]`` may then be used to install Nim, or you can simply
+``koch install [dir]`` may then be used to install Nim, or you can simply
 add it to your PATH. More ``koch`` related options are documented in
 [doc/koch.txt](doc/koch.txt).
 
-The above steps can be performed on Windows in a similar fashion, use
-``build.bat`` instead of ``build.sh``. Make sure you have mingw and git in
-your PATH. If you want to use different compiler, run script and then
-manually change `CC` and `LINKER` variables in `csources/build.bat` or
-`csources/build64.bat`.
+The above steps can be performed on Windows in a similar fashion, the
+``build.bat`` and ``build64.bat`` (for x86_64 systems) are provided to be used
+instead of ``build.sh``.
 
 ## Getting help
 A [forum](http://forum.nim-lang.org/) is available if you have any
diff --git a/web/download.txt b/web/download.txt
index 0d66247f2..497781ad6 100644
--- a/web/download.txt
+++ b/web/download.txt
@@ -24,7 +24,7 @@ like systems. Binary packages may be provided later.
 Download `nim-0.10.2.zip <download/nim-0.10.2.zip>`_, extract it and follow
 these instructions:
 
-* ./build.sh
+* sh build.sh
 * Add ``$your_install_dir/bin`` to your PATH.
 
 There are other ways to install Nim (like using the ``install.sh`` script),
@@ -39,7 +39,11 @@ Change the branch to suit your needs::
 
   git clone -b master git://github.com/Araq/Nim.git
   cd Nim
-  ./build.sh
+  git clone -b master --depth 1 git://github.com/nim-lang/csources
+  cd csources && sh build.sh
+  cd ..
+  bin/nim c koch
+  ./koch boot -d:release
 
 The ``master`` branch always contains the latest stable version of the compiler.
 If you want bleeding edge then switch to the ``devel`` branch and follow