1999-10-05 21:54:54 +05:30
|
|
|
#!/bin/sh
|
2000-02-07 10:59:42 +05:30
|
|
|
# Make busybox links list file.
|
1999-10-05 21:54:54 +05:30
|
|
|
|
2000-12-02 06:14:48 +05:30
|
|
|
CONFIG_H=${1:-Config.h}
|
|
|
|
APPLETS_H=${2:-applets.h}
|
|
|
|
gcc -E -DMAKE_LINKS -include $CONFIG_H $APPLETS_H |
|
|
|
|
awk '/^[ \t]*LINK/{
|
|
|
|
match($2,"_BB_DIR[A-Z_]*")
|
|
|
|
dir=substr($2,RSTART+7,RLENGTH-7)
|
|
|
|
gsub("_","/",dir)
|
|
|
|
if(dir=="/ROOT") dir=""
|
|
|
|
file=$3
|
|
|
|
gsub("\"","",file)
|
|
|
|
if (file=="busybox") next
|
|
|
|
print tolower(dir) "/" file
|
|
|
|
}'
|