blob: 151f5c32558875c74017be374e59a4e465224f65 [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 Andersen8ad12e32000-01-20 19:32: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