mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
Merge pull request #1726 from philip-wernersbach/build-scripts
Add build scripts.
This commit is contained in:
19
build.sh
Executable file
19
build.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
if [ ! -d "csources" ]; then
|
||||
git clone --depth 1 https://github.com/nim-lang/csources.git
|
||||
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
|
||||
9
install.sh.template
Normal file
9
install.sh.template
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
if [ "$1" != "" ]; then
|
||||
exec ./koch install "$1"
|
||||
else
|
||||
exec ./koch install
|
||||
fi
|
||||
Reference in New Issue
Block a user