blob: c4420f50d52636bf1295cc6ebbf868ef785a7dc0 [file] [log] [blame]
Eric Andersencc8ed391999-10-05 16:24:54 +00001#!/bin/sh
Erik Andersenfac10d72000-02-07 05:29:42 +00002# Make busybox links list file.
Eric Andersencc8ed391999-10-05 16:24:54 +00003
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