projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fleshed out a bit more... just wanted to put the current
[oweals/busybox.git]
/
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