mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
* check-guile.in: rename $parent to $srcdir. if it's equal to "."
set it to `pwd`.
This commit is contained in:
parent
51cfd7da2c
commit
fb11ef91dc
1 changed files with 7 additions and 4 deletions
|
@ -11,9 +11,12 @@
|
|||
#
|
||||
# Dependencies: dirname sed
|
||||
|
||||
TEST_SUITE_DIR=@srcdir@/test-suite
|
||||
parent=@srcdir@
|
||||
build_dir=`pwd`
|
||||
srcdir=@srcdir@
|
||||
if [ x"$srcdir" = x. ]; then
|
||||
srcdir=$build_dir
|
||||
fi
|
||||
TEST_SUITE_DIR=$srcdir/test-suite
|
||||
|
||||
if [ x"$1" = x-i ] ; then
|
||||
guile=$2
|
||||
|
@ -22,14 +25,14 @@ if [ x"$1" = x-i ] ; then
|
|||
glp=
|
||||
else
|
||||
guile=$build_dir/libguile/guile
|
||||
glp=$parent
|
||||
glp=$srcdir
|
||||
fi
|
||||
|
||||
if [ -f "$guile" -a -x "$guile" ] ; then
|
||||
echo Testing $guile ... "$@"
|
||||
if [ x"$glp" = x ] ; then
|
||||
glp=`$guile -c "(for-each write-line %load-path)"`
|
||||
glp=`echo $glp | sed 's/ /:/g'`:$parent
|
||||
glp=`echo $glp | sed 's/ /:/g'`:$srcdir
|
||||
fi
|
||||
GUILE_LOAD_PATH=$glp
|
||||
export GUILE_LOAD_PATH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue