mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Reverts "bootstrap.sh: cannot keep exec bit on windows" commit
2d2eca18b8.
We do not need to remove executable bits to workaround old msysGit bug that
shows files having executable bits as modified.
This can and should be addressed by msysGit user either by using latest version
that will treat `bootstrap.sh` as having executable bit because of UNIX Shebang
presence, or setting Git config's `core.fileMode` to false.
See:
http://stackoverflow.com/questions/12193020/file-mode-with-msysgit
http://www.grumpydev.com/2011/01/19/switching-from-cygwin-to-msysgit-git-thinks-everything-has-been-modified/
Quoting Git manual:
core.fileMode
If false, the executable bit differences between the index and the
working copy are ignored; useful on broken filesystems like FAT.
See git-update-index(1). True by default.
20 lines
271 B
Bash
Executable File
20 lines
271 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
set -x
|
|
|
|
if [ ! -e csources/.git ]; then
|
|
git clone --depth 1 git://github.com/nim-lang/csources.git csources
|
|
fi
|
|
|
|
cd "csources"
|
|
sh build.sh
|
|
cd ".."
|
|
|
|
./bin/nim c koch
|
|
./koch boot -d:release
|
|
|
|
cp -f install.sh.template install.sh
|
|
chmod +x install.sh
|
|
|
|
exit 0
|