8 sed -e '/^[ \t]*$/d' -e '/^[ \t]*#/d' $1 > $2
12 sed -n 's,^[ \t]*#include ,,p' $1 |
15 echo $outfile: $inc >> $outfile.makefrag
16 echo $inc: >> $outfile.makefrag
22 i
=$1; o
=$2; t
=${2}.tmp
23 while process_includes_1
$i $o; do
30 rm -f $outfile.makefrag
32 process_includes
$incfile $outfile.inc
34 sort -u $outfile.inc
> $outfile.inc_s
37 if test -z "$excfile"; then
38 mv $outfile.inc_s
$outfile
40 process_includes
$excfile $outfile.exc
42 sort -u $outfile.exc
> $outfile.exc_s
45 sort -m $outfile.inc_s
$outfile.exc_s |
uniq -u > $outfile
46 rm -f $outfile.inc_s
$outfile.exc_s