summaryrefslogtreecommitdiff
path: root/applets/busybox.mkll
blob: e43a1ccb072e939876b583c8360ea4ba1821fcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#Make busybox links list file

DF="busybox.def.h"
MF="main.c"

LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"

	for def in ${LIST}; do
			
		set -- $(sed -n '/^#ifdef '$def'[ +|	+].*/,/^#endif/{s/.*\/\///p; /^{ /{ s/^{ "//; s/",.*$//p;}; }' $MF)
		path=$1; shift
		
			for n in $@; do
				echo "$path/$n"
			done
	done