summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2020-10-07 07:17:39 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2020-10-07 07:17:39 -0400
commit5e05c811c7b4576d99d074107a334d1e969b80be (patch)
tree17c2cb7d7edeebae393639d0746f55b1d6f49a2d
parent25641dc15bcb123009711f614b72cdca2e8cb174 (diff)
Allow use of local chickadee project to speed up debugging.
Sometimes I find a bug in chickadee and need a quick a way to test a bug fix without making a commit and rebuilding the guix environment.
-rw-r--r--pre-inst-env.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/pre-inst-env.in b/pre-inst-env.in
index 5727ddf..0eb7cb2 100644
--- a/pre-inst-env.in
+++ b/pre-inst-env.in
@@ -19,9 +19,15 @@
abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd`"
abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd`"
-GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
-GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
-export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
+export GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
+export GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
+
+if [ -n "$LOCAL_CHICKADEE" ]
+then
+ export GUILE_LOAD_PATH=$LOCAL_CHICKADEE:$GUILE_LOAD_PATH
+ export GUILE_LOAD_COMPILED_PATH=$LOCAL_CHICKADEE:$GUILE_LOAD_COMPILED_PATH
+ export CHICKADEE_DATADIR=$LOCAL_CHICKADEE/data
+fi
PATH="$abs_top_builddir/scripts:$PATH"
export PATH