blob: 12fa06f40c76785fa18f73a944d0ef535d1a53c4 [file] [log] [blame]
Eric Andersencc8ed391999-10-05 16:24:54 +00001#!/bin/sh
Erik Andersenfac10d72000-02-07 05:29:42 +00002# Make busybox links list file.
Eric Andersencc8ed391999-10-05 16:24:54 +00003
Eric Andersen868c0572000-12-02 00:44:48 +00004CONFIG_H=${1:-Config.h}
5APPLETS_H=${2:-applets.h}
6gcc -E -DMAKE_LINKS -include $CONFIG_H $APPLETS_H |
7 awk '/^[ \t]*LINK/{
8 match($2,"_BB_DIR[A-Z_]*")
9 dir=substr($2,RSTART+7,RLENGTH-7)
10 gsub("_","/",dir)
11 if(dir=="/ROOT") dir=""
12 file=$3
13 gsub("\"","",file)
14 if (file=="busybox") next
15 print tolower(dir) "/" file
16 }'