From f58668c0598a259f9d093d59f582db876fa14faf Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 16 Jan 2014 11:08:10 +0100 Subject: Move src/env.sh to .local --- .local/environment.sh | 30 ++++++++++++++++++++++++++++++ src/env.sh | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) create mode 100755 .local/environment.sh delete mode 100755 src/env.sh diff --git a/.local/environment.sh b/.local/environment.sh new file mode 100755 index 0000000..66591f6 --- /dev/null +++ b/.local/environment.sh @@ -0,0 +1,30 @@ +doecho() { + echo $@ + eval $@ +} + +home=~ben + +if [ "$HOSTNAME" = "blx" ]; then +doecho export prefix=$home/.local +else +doecho export prefix=$home/dist +fi + +doecho export 'ACLOCAL="aclocal -I '$prefix'/share/aclocal"' + +doecho export LD_LIBRARY_PATH="$prefix/lib" +doecho export WESTON_LIBRARY_PATH="$LD_LIBRARY_PATH" +doecho export PKG_CONFIG_PATH=$LD_LIBRARY_PATH/pkgconfig +#doecho export C_INCLUDE_PATH="$prefix/include" + +doecho export EGL_DRIVER=egl_dri2 +#doecho export EGL_DRIVER=egl_gallium + +doecho export EGL_LOG_LEVEL=debug +#doecho export EGL_PLATFORM=wayland + +if [ "x$XDG_RUNTIME_DIR" = "x" ]; then + doecho export XDG_RUNTIME_DIR=$home/src +fi +doecho export SDL_VIDEODRIVER=wayland diff --git a/src/env.sh b/src/env.sh deleted file mode 100755 index 66591f6..0000000 --- a/src/env.sh +++ /dev/null @@ -1,30 +0,0 @@ -doecho() { - echo $@ - eval $@ -} - -home=~ben - -if [ "$HOSTNAME" = "blx" ]; then -doecho export prefix=$home/.local -else -doecho export prefix=$home/dist -fi - -doecho export 'ACLOCAL="aclocal -I '$prefix'/share/aclocal"' - -doecho export LD_LIBRARY_PATH="$prefix/lib" -doecho export WESTON_LIBRARY_PATH="$LD_LIBRARY_PATH" -doecho export PKG_CONFIG_PATH=$LD_LIBRARY_PATH/pkgconfig -#doecho export C_INCLUDE_PATH="$prefix/include" - -doecho export EGL_DRIVER=egl_dri2 -#doecho export EGL_DRIVER=egl_gallium - -doecho export EGL_LOG_LEVEL=debug -#doecho export EGL_PLATFORM=wayland - -if [ "x$XDG_RUNTIME_DIR" = "x" ]; then - doecho export XDG_RUNTIME_DIR=$home/src -fi -doecho export SDL_VIDEODRIVER=wayland -- cgit