From aff882a8743c5d548d88d4ea1be41e22f8436ce7 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Sat, 18 Dec 1999 18:21:39 +0000 Subject: [PATCH] * guile-doc-snarf.in (filename): Strip path to source dir before touching the .x-files. --- libguile/guile-doc-snarf.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libguile/guile-doc-snarf.in b/libguile/guile-doc-snarf.in index 9ace981de..600ee0b62 100755 --- a/libguile/guile-doc-snarf.in +++ b/libguile/guile-doc-snarf.in @@ -3,6 +3,9 @@ filename=$1; shift +# strip path to source directory +filename=`basename $filename` + # we need to be sure that the .x file exists # since the .c/.cc file may include it # (the old guile-snarf did not have this problem @@ -21,4 +24,4 @@ test -n "${CPP+set}" || CPP="@CPP@" ## We must use a temporary file here, instead of a pipe, because we ## need to know if CPP exits with a non-zero status. ${CPP} -DSCM_MAGIC_SNARFER "$@" > ${temp} || exit $? -< ${temp} awk -f `dirname $0`/guile-snarf.awk `basename $filename` +< ${temp} awk -f `dirname $0`/guile-snarf.awk $filename