Turned some #define constants into static const ints.
[oweals/busybox.git] / busybox.sh
1 #!/bin/sh
2
3 RAW=` \
4     gcc -E -dM ${1:-Config.h} | \
5     sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
6     | tr A-Z a-z | sort
7 `
8 test "${RAW}" != "" ||  exit
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'
13