Static-ify a variable. make du work with all the human-readable variants
[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 # By running $RAW through "ls", we avoid listing
11 # source files that don't exist.
12 ls $RAW 2>/dev/null | tr '\n' ' '
13