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:
Tom Willemsen 2012-07-31 02:21:38 +02:00
parent 124de5657f
commit a0fb2ed62c
2 changed files with 8 additions and 3 deletions

7
env Executable file
View 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 "$@"

View file

@ -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 "$@"