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.
This commit is contained in:
parent
124de5657f
commit
a0fb2ed62c
2 changed files with 8 additions and 3 deletions
7
env
Executable file
7
env
Executable file
|
@ -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 "$@"
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export GUILE_LOAD_PATH="$(dirname $(realpath $0)):$GUILE_LOAD_PATH"
|
./env src/gitto "$@"
|
||||||
export GUILE_LOAD_COMPILED_PATH="$(dirname $(realpath $0)):$GUILE_LOAD_PATH"
|
|
||||||
exec src/gitto "$@"
|
|
||||||
|
|
Loading…
Reference in a new issue