From 05e19981beb0ee018e71450d78592cd0bc629d81 Mon Sep 17 00:00:00 2001 From: Tharre Date: Sat, 3 Jan 2015 03:46:07 +0100 Subject: Add support for local config files (config.local) --- out/config.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'out') diff --git a/out/config.sh b/out/config.sh index b38fbd9..9b45b5f 100644 --- a/out/config.sh +++ b/out/config.sh @@ -6,3 +6,12 @@ fi CC=${CC-$PREF} CFLAGS="-g -Wall -Wextra -std=c99 -pedantic -Wno-gnu-statement-expression $CFLAGS" LDFLAGS="$LDFLAGS" + +if [ ! -n "$SH_BUILD" ]; then + if [ -f "../config.local" ]; then + redo-ifchange ../config.local + . ../config.local + else + redo-ifcreate ../config.local + fi +fi -- cgit v1.2.3-70-g09d2