From 5e05c811c7b4576d99d074107a334d1e969b80be Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 7 Oct 2020 07:17:39 -0400 Subject: 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. --- pre-inst-env.in | 12 +++++++++--- 1 file 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 -- cgit v1.2.3