summary refs log tree commit diff stats
path: root/install.sh.template
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-10-01 00:18:32 +0200
committerAdam Strzelecki <ono@java.pl>2015-10-03 19:51:17 +0200
commit6cc98539354607306e213ac90b2dac7cb3e86f73 (patch)
tree41b37206ce429162973d88c42ef99292f97852ee /install.sh.template
parent6655537c6658e39b1d44c228a2315a62f6f9fc69 (diff)
downloadNim-6cc98539354607306e213ac90b2dac7cb3e86f73.tar.gz
bootstrap: Generate final install.sh during build
This solves problem where bootstrap was simply copying ./install.sh.template
into ./install.sh. Then first call of ./install.sh was calling ./koch install
that was running extra compilation and overwriting ./install.sh with new
content.

This was overcomplicated, and also caused first `sudo ./install.sh DIR` to run
compilation under root account, leaving root owned files in working directory.

Now bootstrap calls `./koch geninstall` that just generates ./install.sh
without calling it. This ./install.sh is FINAL one, and running it does not
generate any files aside passed DIR. This makes whole process simpler.
Diffstat (limited to 'install.sh.template')
-rw-r--r--install.sh.template9
1 files changed, 0 insertions, 9 deletions
diff --git a/install.sh.template b/install.sh.template
deleted file mode 100644
index 1292abdab..000000000
--- a/install.sh.template
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-set -e
-set -x
-
-if [ "$1" != "" ]; then
-	exec ./koch install "$1"
-else
-	exec ./koch install
-fi