Basic automake build stuff
[mudsync.git] / env.in
diff --git a/env.in b/env.in
new file mode 100644 (file)
index 0000000..a681bdc
--- /dev/null
+++ b/env.in
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+## Also borrowed from guile-opengl, which is GPLv3+
+
+GUILE_LOAD_PATH=@abs_top_srcdir@:$GUILE_LOAD_PATH
+if test "@abs_top_srcdir@" != "@abs_top_builddir@"; then
+    GUILE_LOAD_PATH=@abs_top_builddir@:$GUILE_LOAD_PATH
+fi
+GUILE_LOAD_COMPILED_PATH=@abs_top_builddir@:$GUILE_LOAD_PATH
+PATH=@abs_top_builddir@/bin:$PATH
+
+export GUILE_LOAD_PATH
+export GUILE_LOAD_COMPILED_PATH
+export PATH
+
+exec "$@"