Commit | Line | Data |
---|---|---|
99d8f2d5 TTN |
1 | #!/bin/sh |
2 | ||
b226295a | 3 | # Copyright (C) 2002, 2006, 2008 Free Software Foundation |
99d8f2d5 TTN |
4 | # |
5 | # This file is part of GUILE. | |
6 | # | |
53befeb7 NJ |
7 | # GUILE is free software; you can redistribute it and/or modify it |
8 | # under the terms of the GNU Lesser General Public License as | |
9 | # published by the Free Software Foundation; either version 3, or | |
99d8f2d5 TTN |
10 | # (at your option) any later version. |
11 | # | |
12 | # GUILE is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
53befeb7 | 15 | # GNU Lesser General Public License for more details. |
99d8f2d5 | 16 | # |
53befeb7 NJ |
17 | # You should have received a copy of the GNU Lesser General Public |
18 | # License along with GUILE; see the file COPYING.LESSER. If not, | |
19 | # write to the Free Software Foundation, Inc., 51 Franklin Street, | |
20 | # Fifth Floor, Boston, MA 02110-1301 USA | |
99d8f2d5 TTN |
21 | |
22 | # Commentary: | |
23 | ||
0b6d8fdc | 24 | # Usage: guile [ARGS] |
99d8f2d5 TTN |
25 | # |
26 | # This script arranges for the environment to support, and eventaully execs, | |
27 | # the uninstalled binary guile executable located somewhere under libguile/, | |
28 | # passing ARGS to it. In the process, env var GUILE is clobbered, and the | |
29 | # following env vars are modified (but not clobbered): | |
30 | # GUILE_LOAD_PATH | |
ec99391a | 31 | # LTDL_LIBRARY_PATH |
99d8f2d5 TTN |
32 | # |
33 | # This script can be used as a drop-in replacement for $bindir/guile; | |
34 | # if there is a discrepency in behavior, that's a bug. | |
35 | ||
36 | # Code: | |
37 | ||
99d8f2d5 | 38 | # env (set by configure) |
99d8f2d5 TTN |
39 | top_builddir="@top_builddir_absolute@" |
40 | ||
99d8f2d5 TTN |
41 | # set GUILE (clobber) |
42 | GUILE=${top_builddir}/libguile/guile | |
43 | export GUILE | |
44 | ||
45 | # do it | |
0b6d8fdc | 46 | exec ${top_builddir}/meta/uninstalled-env $GUILE "$@" |
99d8f2d5 TTN |
47 | |
48 | # never reached | |
49 | exit 1 | |
50 | ||
0b6d8fdc | 51 | # guile ends here |