2 # Construct a target device config file from a default, pulling in any
3 # files from include directives.
12 cat $1 |
grep '^include' | \
13 while read include
file ; do
14 all_includes
="$all_includes $src_dir/$file"
15 process_includes
$src_dir/$file
20 while [ -n "$f" ] ; do
21 f
=`tr -d '\r' < $f | awk '/^include / {printf "'$src_dir'/%s", $2}'`
23 all_includes
="$all_includes $f"
25 process_includes
$src > $dest
27 cat $src $all_includes |
grep -v '^include' > $dest
28 echo "`basename $1`: $all_includes" > $dep