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