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 | ` |
| 8 | cd ${2:-.} |
| 9 | # I added in the extra "ls" so only source files that |
| 10 | # actually exist will show up in the compile list. |
| 11 | ls -1 $RAW 2>/dev/null | sed -e 's/\.c$/\.o/g' |
Erik Andersen | 6273f65 | 2000-03-17 01:12:41 +0000 | [diff] [blame] | 12 | |