* guile-snarf.in: Change regexp "^SCM__I" --> "^ *SCM__I".
[bpt/guile.git] / libguile / guile-snarf.in
CommitLineData
adb75a41
TT
1#!/bin/sh
2# Extract the initialization actions for builtin things.
3
7677589a
JB
4temp="/tmp/snarf.$$"
5trap "rm -f $temp" 0 1 2 15
6
63a646c5
JB
7## Let the user override the preprocessor autoconf found.
8test -n "${CPP+set}" || CPP="@CPP@"
7677589a
JB
9
10## We must use a temporary file here, instead of a pipe, because we
11## need to know if CPP exits with a non-zero status.
12${CPP} -DSCM_MAGIC_SNARFER "$@" > ${temp} || exit $?
e8ec2fd0 13< ${temp} grep "^ *SCM__I" | sed -e "s/^ *SCM__I//" -e 's/SCM__D.*$//g'
63a646c5
JB
14
15## Apparently, AIX's preprocessor is unhappy if you try to #include an
16## empty file.
17echo