aboutsummaryrefslogtreecommitdiff
path: root/applets/busybox.mkll
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-03-16 08:09:09 +0000
committerErik Andersen <andersen@codepoet.org>2000-03-16 08:09:09 +0000
commitd75af99529879e6cd38164fd110732052a9cdda4 (patch)
tree3a6e672d0b0d5104cc3c33f65b20fdaacd365c2e /applets/busybox.mkll
parenta967e3c8f004d9d613e2f531a3bf7869f2e68b90 (diff)
downloadbusybox-d75af99529879e6cd38164fd110732052a9cdda4.tar.gz
Major build system updates...
-Erik
Diffstat (limited to 'applets/busybox.mkll')
-rwxr-xr-xapplets/busybox.mkll16
1 files changed, 10 insertions, 6 deletions
diff --git a/applets/busybox.mkll b/applets/busybox.mkll
index c4420f50d..fa1bff209 100755
--- a/applets/busybox.mkll
+++ b/applets/busybox.mkll
@@ -4,12 +4,16 @@
DF="busybox.def.h"
MF="busybox.c"
-LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"
+LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)"
for def in ${LIST}; do
- i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF`
- j=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF`
- for k in $j; do
- echo $i$k
- done
+ i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF`
+ for j in $i; do
+ if [ -z $j ] ; then
+ continue;
+ fi;
+ echo $j | sed -e 's/_BB_DIR_ROOT//g;s/_BB_DIR_BIN/\/bin/g;' \
+ -e 's/_BB_DIR_SBIN/\/sbin/g;s/_BB_DIR_USR_BIN/\/usr\/bin/g;' \
+ -e 's/_BB_DIR_USR_SBIN/\/usr\/sbin/g;'
+ done;
done