busybox.sh 390 B

12345678910111213141516
  1. #!/bin/sh
  2. export LC_ALL=POSIX
  3. export LC_CTYPE=POSIX
  4. RAW=` \
  5. $CC -E -dM ${1:-Config.h} | \
  6. sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1.c/gp;' \
  7. | tr A-Z a-z | sort
  8. `
  9. test "${RAW}" != "" || exit
  10. if [ -d "$BB_SRC_DIR" ]; then cd $BB_SRC_DIR; fi
  11. # By running $RAW through "ls", we avoid listing
  12. # source files that don't exist.
  13. ls $RAW 2>/dev/null | tr '\n' ' '