Bump version to 0.1.2.
[guile-sdl2.git] / pre-inst-env.in
1 #!/bin/sh
2
3 # guile-sdl2 --- FFI bindings for SDL2
4 # Copyright © 2015 David Thompson <davet@gnu.org>
5 #
6 # This file is part of guile-sdl2.
7 #
8 # Guile-sdl2 is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as
10 # published by the Free Software Foundation; either version 3 of the
11 # License, or (at your option) any later version.
12 #
13 # Guile-sdl2 is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with guile-sdl2. If not, see
20 # <http://www.gnu.org/licenses/>.
21
22 abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd`"
23 abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd`"
24
25 GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
26 GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}:$GUILE_LOAD_PATH"
27 export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH
28
29 PATH="$abs_top_builddir/scripts:$PATH"
30 export PATH
31
32 exec "$@"