blob: f79462b7f1aae1bd74fb7542e99c91c844f4de91 [file] [log] [blame]
Eric Andersencc8ed391999-10-05 16:24:54 +00001#!/bin/sh
2#Make busybox links list file
3
4DF="busybox.def.h"
Eric Andersen17d49ef1999-10-06 20:25:32 +00005MF="busybox.c"
Eric Andersencc8ed391999-10-05 16:24:54 +00006
7LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"
8
Eric Andersen17d49ef1999-10-06 20:25:32 +00009for 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
Eric Andersencc8ed391999-10-05 16:24:54 +000014 done
Eric Andersen17d49ef1999-10-06 20:25:32 +000015done