Eric Andersen | b09c6b5 | 1999-10-06 05:21:54 +0000 | [diff] [blame] | 1 | #!/bin/sh |
Erik Andersen | 6273f65 | 2000-03-17 01:12:41 +0000 | [diff] [blame] | 2 | |
Eric Andersen | e2f6e12 | 2000-12-01 19:55:04 +0000 | [diff] [blame] | 3 | RAW=` \ |
| 4 | gcc -E -dM ${1:-Config.h} | \ |
Erik Andersen | 6273f65 | 2000-03-17 01:12:41 +0000 | [diff] [blame] | 5 | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \ |
Eric Andersen | 1b355eb | 2000-09-05 17:37:48 +0000 | [diff] [blame] | 6 | | tr '[:upper:]' '[:lower:]' | sort |
Eric Andersen | e2f6e12 | 2000-12-01 19:55:04 +0000 | [diff] [blame] | 7 | ` |
Eric Andersen | a2d61e7 | 2000-12-12 16:55:56 +0000 | [diff] [blame^] | 8 | test "${RAW}" != "" || exit |
Eric Andersen | e2f6e12 | 2000-12-01 19:55:04 +0000 | [diff] [blame] | 9 | cd ${2:-.} |
| 10 | # I added in the extra "ls" so only source files that |
| 11 | # actually exist will show up in the compile list. |
| 12 | ls -1 $RAW 2>/dev/null | sed -e 's/\.c$/\.o/g' |
Erik Andersen | 6273f65 | 2000-03-17 01:12:41 +0000 | [diff] [blame] | 13 | |