blob: be6d937cfb8b06ea3739ff354c663ae7b472b7f5 [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
Eric Andersenc4996011999-10-20 22:08:37 +000010 i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF`
Erik Andersenf4acea82000-01-22 04:55:32 +000011 j=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF`
Eric Andersen17d49ef1999-10-06 20:25:32 +000012 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