1#!/bin/sh 2 3export LC_ALL=POSIX 4export LC_CTYPE=POSIX 5 6RAW=` \ 7 gcc -E -dM ${1:-Config.h} | \ 8 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ 9 | tr A-Z a-z | sort 10` 11test "${RAW}" != "" || exit 12if [ -d "$BB_SRC_DIR" ]; then cd $BB_SRC_DIR; fi 13# By running $RAW through "ls", we avoid listing 14# source files that don't exist. 15ls $RAW 2>/dev/null | tr '\n' ' ' 16 17