aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-07-31 02:21:38 +0200
committerGravatar Tom Willemsen2012-07-31 02:21:38 +0200
commita0fb2ed62c21c3d9909a3202e73ac44b5a8fac40 (patch)
tree98e0088c1bbfb4b6fe23426b440443444b7b95ff
parent124de5657f0d585efcec1d102f9c4bfbbffe5787 (diff)
downloadgitto-a0fb2ed62c21c3d9909a3202e73ac44b5a8fac40.tar.gz
gitto-a0fb2ed62c21c3d9909a3202e73ac44b5a8fac40.zip
Seperate settings to env
Set environment settings in `env' and have `run-gitto' use it, this makes it easy for other commands (like make) to utilize this as well. * env: New file, set environment variables needed to do anything with gitto outside of an installed state. * run-gitto: Move environment settings to `env' and just run it.
-rwxr-xr-xenv7
-rwxr-xr-xrun-gitto4
2 files changed, 8 insertions, 3 deletions
diff --git a/env b/env
new file mode 100755
index 0000000..f555499
--- /dev/null
+++ b/env
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+export GUILE_LOAD_PATH="$(dirname $(realpath $0)):$GUILE_LOAD_PATH"
+export GUILE_LOAD_COMPILED_PATH="$(dirname $(realpath $0)):$GUILE_LOAD_COMPILED_PATH"
+export LD_LIBRARY_PATH="$(dirname $(realpath $0))/src:$LD_LIBRARY_PATH"
+
+exec "$@"
diff --git a/run-gitto b/run-gitto
index 9f45893..d25b784 100755
--- a/run-gitto
+++ b/run-gitto
@@ -1,5 +1,3 @@
#!/bin/sh
-export GUILE_LOAD_PATH="$(dirname $(realpath $0)):$GUILE_LOAD_PATH"
-export GUILE_LOAD_COMPILED_PATH="$(dirname $(realpath $0)):$GUILE_LOAD_PATH"
-exec src/gitto "$@"
+./env src/gitto "$@"