aboutsummaryrefslogtreecommitdiff
path: root/pre-inst-env.in
diff options
context:
space:
mode:
authorArun Isaac2021-02-10 14:28:32 +0530
committerArun Isaac2021-02-10 14:53:50 +0530
commitfc2a0c2aba0a8526412869349683cb04f1038465 (patch)
tree57b947dab3d31db61f3b645795db9729cb7f4aec /pre-inst-env.in
parent7b74734e6b9356cf4208950ba254b75d756aec5b (diff)
downloadnsmc-fc2a0c2aba0a8526412869349683cb04f1038465.tar.gz
nsmc-fc2a0c2aba0a8526412869349683cb04f1038465.tar.lz
nsmc-fc2a0c2aba0a8526412869349683cb04f1038465.zip
Add pre-installation environment script.
The pre-inst-env script is required to find freshly built libraries and scheme files before installation. * pre-inst-env.in: New file. * CMakeLists.txt: Configure pre-inst-env.in with correct paths.
Diffstat (limited to 'pre-inst-env.in')
-rwxr-xr-xpre-inst-env.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/pre-inst-env.in b/pre-inst-env.in
new file mode 100755
index 0000000..2f0dfed
--- /dev/null
+++ b/pre-inst-env.in
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+export GUILE_LOAD_PATH="@CMAKE_BINARY_DIR@/scm${GUILE_LOAD_PATH:+:}${GUILE_LOAD_PATH}"
+export GUILE_LOAD_COMPILED_PATH="@CMAKE_BINARY_DIR@/scm${GUILE_LOAD_COMPILED_PATH:+:}${GUILE_LOAD_COMPILED_PATH}"
+export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
+
+exec "$@"