summaryrefslogtreecommitdiff
path: root/pre-inst-env.in
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-07-07 21:56:17 -0400
committerDavid Thompson <dthompson2@worcester.edu>2022-07-07 21:56:17 -0400
commita090d0a7c9168ca6292c6cdf1b8c27c5a067c085 (patch)
tree5542cf5c17662acd570fb9f892ced59b84ca5c33 /pre-inst-env.in
parentddefe10ba133c8397ddf46c15e2614c1748ddf99 (diff)
Automatically add Haunt's modules to Guile's load path at startup.
This fixes a longstanding usability issue where people would install Haunt to /usr/local and then wonder why Haunt doesn't work, which was because Guile's default load path is /usr and thus could not find the newly installed modules in /usr/local. I received several emails about this over the years and didn't know to deal with it. Many thanks to Daniel Meißner for pointing out that Guix had already found a solution to this problem because of course Guix would have this problem solved! Ludovic is an autotools wizard.
Diffstat (limited to 'pre-inst-env.in')
-rw-r--r--pre-inst-env.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/pre-inst-env.in b/pre-inst-env.in
index 84c88ca..8a3ad0a 100644
--- a/pre-inst-env.in
+++ b/pre-inst-env.in
@@ -28,4 +28,6 @@ export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
PATH="$abs_top_builddir/scripts:$PATH"
export PATH
+HAUNT_UNINSTALLED=true
+
exec "$@"