projects
/
platform
/
upstream
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c4420f50d52636bf1295cc6ebbf868ef785a7dc0
[platform/upstream/busybox.git]
/
applets
/
busybox.mkll
1
#!/bin/sh
2
# Make busybox links list file.
3
4
DF="busybox.def.h"
5
MF="busybox.c"
6
7
LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"
8
9
for def in ${LIST}; do
10
i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF`
11
j=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF`
12
for k in $j; do
13
echo $i$k
14
done
15
done