blob: 7c3deb20e01eef5b348cd646d158e9b775a1f040 [file] [log] [blame]
Eric Andersenb09c6b51999-10-06 05:21:54 +00001#!/bin/sh
Erik Andersen6273f652000-03-17 01:12:41 +00002
Eric Andersen39eea892001-03-08 21:42:11 +00003export LC_ALL=POSIX
4export LC_CTYPE=POSIX
5
Eric Andersene2f6e122000-12-01 19:55:04 +00006RAW=` \
7 gcc -E -dM ${1:-Config.h} | \
Erik Andersen6273f652000-03-17 01:12:41 +00008 sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
Matt Kraaie9e182e2000-12-26 16:36:10 +00009 | tr A-Z a-z | sort
Eric Andersene2f6e122000-12-01 19:55:04 +000010`
Eric Andersena2d61e72000-12-12 16:55:56 +000011test "${RAW}" != "" || exit
Eric Andersenb9f5b822001-05-01 16:24:32 +000012if [ -d "$BB_SRC_DIR" ]; then cd $BB_SRC_DIR; fi
Eric Andersen19f86202001-02-17 00:42:47 +000013# By running $RAW through "ls", we avoid listing
14# source files that don't exist.
15ls $RAW 2>/dev/null | tr '\n' ' '
Erik Andersen6273f652000-03-17 01:12:41 +000016