aboutsummaryrefslogtreecommitdiff
path: root/applets/busybox.mkscripts
blob: 935685cba87b3a96bbca40ef68e9296ae4cf6228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Make busybox scripted applet list file.

# input $1: full path to Config.h
# input $2: full path to applets.h
# output (stdout): list of pathnames that should be linked to busybox

export LC_ALL=POSIX
export LC_CTYPE=POSIX

CONFIG_H=${1:-include/autoconf.h}
APPLETS_H=${2:-include/applets.h}
$HOSTCC -E -DMAKE_SCRIPTS -include $CONFIG_H $APPLETS_H |
  awk '/^[ \t]*SCRIPT/{
	print $2
  }'