3
0

busybox.mkscripts 401 B

12345678910111213141516
  1. #!/bin/sh
  2. # Make busybox scripted applet list file.
  3. # input $1: full path to Config.h
  4. # input $2: full path to applets.h
  5. # output (stdout): list of pathnames that should be linked to busybox
  6. export LC_ALL=POSIX
  7. export LC_CTYPE=POSIX
  8. CONFIG_H=${1:-include/autoconf.h}
  9. APPLETS_H=${2:-include/applets.h}
  10. $HOSTCC -E -DMAKE_SCRIPTS -include $CONFIG_H $APPLETS_H |
  11. awk '/^[ \t]*SCRIPT/{
  12. print $2
  13. }'