Use gcc -E instead of cpp to enhance portability for brain
[oweals/busybox.git] / busybox.sh
1 #!/bin/sh
2
3 # I added in the extra "ls" so only source files that
4 # actually exist will show up in the compile list.
5 ls -1 ` \
6     gcc -E -dM busybox.def.h | \
7     sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
8     | tr [:upper:] [:lower:] | sort
9 ` 2>/dev/null | sed -e 's/\.c$/\.o/g'
10