summaryrefslogtreecommitdiff
path: root/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 /busybox.mkll
parenta967e3c8f004d9d613e2f531a3bf7869f2e68b90 (diff)
downloadbusybox-w32-d75af99529879e6cd38164fd110732052a9cdda4.tar.gz
busybox-w32-d75af99529879e6cd38164fd110732052a9cdda4.tar.bz2
busybox-w32-d75af99529879e6cd38164fd110732052a9cdda4.zip
Major build system updates...
-Erik
Diffstat (limited to 'busybox.mkll')
-rwxr-xr-xbusybox.mkll16
1 files changed, 10 insertions, 6 deletions
diff --git a/busybox.mkll b/busybox.mkll
index c4420f50d..fa1bff209 100755
--- a/busybox.mkll
+++ b/busybox.mkll
@@ -4,12 +4,16 @@
4DF="busybox.def.h" 4DF="busybox.def.h"
5MF="busybox.c" 5MF="busybox.c"
6 6
7LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)" 7LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)"
8 8
9for def in ${LIST}; do 9for def in ${LIST}; do
10 i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF` 10 i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF`
11 j=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF` 11 for j in $i; do
12 for k in $j; do 12 if [ -z $j ] ; then
13 echo $i$k 13 continue;
14 done 14 fi;
15 echo $j | sed -e 's/_BB_DIR_ROOT//g;s/_BB_DIR_BIN/\/bin/g;' \
16 -e 's/_BB_DIR_SBIN/\/sbin/g;s/_BB_DIR_USR_BIN/\/usr\/bin/g;' \
17 -e 's/_BB_DIR_USR_SBIN/\/usr\/sbin/g;'
18 done;
15done 19done