summaryrefslogtreecommitdiff
path: root/pre-inst-env.in
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-12-15 09:06:47 -0500
committerDavid Thompson <dthompson2@worcester.edu>2023-01-06 16:00:25 -0500
commit309fd1ac41cb1dffe65599743bf884871287e508 (patch)
treedd500a3f93c4b23c14a4ad6069ff30082897c375 /pre-inst-env.in
First commit!
Diffstat (limited to 'pre-inst-env.in')
-rw-r--r--pre-inst-env.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/pre-inst-env.in b/pre-inst-env.in
new file mode 100644
index 0000000..881f142
--- /dev/null
+++ b/pre-inst-env.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd`"
+abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd`"
+
+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"
+export PATH="$abs_top_builddir/scripts:$PATH"
+
+exec "$@"