mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
* guile-doc-snarf.in (filename): Strip path to source dir before
touching the .x-files.
This commit is contained in:
parent
f73295a881
commit
aff882a874
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
filename=$1; shift
|
filename=$1; shift
|
||||||
|
|
||||||
|
# strip path to source directory
|
||||||
|
filename=`basename $filename`
|
||||||
|
|
||||||
# we need to be sure that the .x file exists
|
# we need to be sure that the .x file exists
|
||||||
# since the .c/.cc file may include it
|
# since the .c/.cc file may include it
|
||||||
# (the old guile-snarf did not have this problem
|
# (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
|
## We must use a temporary file here, instead of a pipe, because we
|
||||||
## need to know if CPP exits with a non-zero status.
|
## need to know if CPP exits with a non-zero status.
|
||||||
${CPP} -DSCM_MAGIC_SNARFER "$@" > ${temp} || exit $?
|
${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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue