aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-01-03 03:46:07 +0100
committerTharre <tharre3@gmail.com>2015-01-03 03:49:30 +0100
commit05e19981beb0ee018e71450d78592cd0bc629d81 (patch)
tree0deb4c9c1af7f4f9d66818aa25b33e346349f39f /build.sh
parent74ec249cc047a5ea6ced84fb301de638f55c6e2c (diff)
downloadredo-05e19981beb0ee018e71450d78592cd0bc629d81.tar.gz
redo-05e19981beb0ee018e71450d78592cd0bc629d81.tar.xz
redo-05e19981beb0ee018e71450d78592cd0bc629d81.zip
Add support for local config files (config.local)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 6a05260..c55c316 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,10 @@
#!/bin/sh -ex
+export SH_BUILD=1
+
+if [ -f "./config.local" ]; then
+ . ./config.local
+fi
. out/config.sh
$CC $CFLAGS -o out/util.o -c src/util.c
$CC $CFLAGS -o out/build.o -c src/build.c