1999-10-06 05:21:54 +00:00
|
|
|
#!/bin/sh
|
2000-03-17 01:12:41 +00:00
|
|
|
|
2001-03-08 21:42:11 +00:00
|
|
|
export LC_ALL=POSIX
|
|
|
|
export LC_CTYPE=POSIX
|
|
|
|
|
2000-12-01 19:55:04 +00:00
|
|
|
RAW=` \
|
|
|
|
gcc -E -dM ${1:-Config.h} | \
|
2000-03-17 01:12:41 +00:00
|
|
|
sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
|
2000-12-26 16:36:10 +00:00
|
|
|
| tr A-Z a-z | sort
|
2000-12-01 19:55:04 +00:00
|
|
|
`
|
2000-12-12 16:55:56 +00:00
|
|
|
test "${RAW}" != "" || exit
|
2001-05-01 16:24:32 +00:00
|
|
|
if [ -d "$BB_SRC_DIR" ]; then cd $BB_SRC_DIR; fi
|
2001-02-17 00:42:47 +00:00
|
|
|
# By running $RAW through "ls", we avoid listing
|
|
|
|
# source files that don't exist.
|
|
|
|
ls $RAW 2>/dev/null | tr '\n' ' '
|
2000-03-17 01:12:41 +00:00
|
|
|
|