aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rwxr-xr-xapplets/busybox.mkscripts16
1 files changed, 16 insertions, 0 deletions
diff --git a/applets/busybox.mkscripts b/applets/busybox.mkscripts
new file mode 100755
index 000000000..935685cba
--- /dev/null
+++ b/applets/busybox.mkscripts
@@ -0,0 +1,16 @@
1#!/bin/sh
2# Make busybox scripted applet list file.
3
4# input $1: full path to Config.h
5# input $2: full path to applets.h
6# output (stdout): list of pathnames that should be linked to busybox
7
8export LC_ALL=POSIX
9export LC_CTYPE=POSIX
10
11CONFIG_H=${1:-include/autoconf.h}
12APPLETS_H=${2:-include/applets.h}
13$HOSTCC -E -DMAKE_SCRIPTS -include $CONFIG_H $APPLETS_H |
14 awk '/^[ \t]*SCRIPT/{
15 print $2
16 }'