mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
guild: Close over `$bindir/guile'.
* configure.ac: Substitute `guile_program_name'. * meta/guild.in: Use `@bindir@/@guile_program_name@' by default. * meta/uninstalled-env.in: Define $GUILE.
This commit is contained in:
parent
0d2e3fc1e7
commit
f4b7d918ef
3 changed files with 11 additions and 1 deletions
|
@ -1636,6 +1636,10 @@ pkgdatadir="$datadir/$PACKAGE_TARNAME"
|
|||
sitedir="$pkgdatadir/site/$GUILE_EFFECTIVE_VERSION"
|
||||
AC_SUBST([sitedir])
|
||||
|
||||
dnl Name of the `guile' program.
|
||||
guile_program_name="`echo guile | "$SED" "$program_transform_name"`"
|
||||
AC_SUBST([guile_program_name])
|
||||
|
||||
# Additional SCM_I_GSC definitions are above.
|
||||
AC_SUBST([SCM_I_GSC_GUILE_DEBUG])
|
||||
AC_SUBST([SCM_I_GSC_ENABLE_DEPRECATED])
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh
|
||||
# -*- scheme -*-
|
||||
exec guile $GUILE_FLAGS -e '(@@ (guild) main)' -s "$0" "$@"
|
||||
prefix="@prefix@"
|
||||
exec_prefix="@exec_prefix@"
|
||||
exec ${GUILE:-@bindir@/@guile_program_name@} $GUILE_FLAGS -e '(@@ (guild) main)' -s "$0" "$@"
|
||||
!#
|
||||
|
||||
;;;; guild --- running scripts bundled with Guile
|
||||
|
|
|
@ -136,4 +136,8 @@ if test "x${top_srcdir}" != "x${top_builddir}"; then
|
|||
fi
|
||||
export PATH
|
||||
|
||||
# Define $GUILE, used by `guild'.
|
||||
GUILE="${top_builddir}/meta/guile"
|
||||
export GUILE
|
||||
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue