Detect missing config includes
Terminate make_device_config.sh if the awk command fails. Typically this means a missing file. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
050e27c8c9
commit
cf66924f81
@ -18,7 +18,8 @@ process_includes () {
|
||||
|
||||
f=$src
|
||||
while [ -n "$f" ] ; do
|
||||
f=`awk '/^include / {print "'$src_dir'/" $2}' $f`
|
||||
f=`awk '/^include / {ORS=" " ; print "'$src_dir'/" $2}' $f`
|
||||
[ $? = 0 ] || exit 1
|
||||
all_includes="$all_includes $f"
|
||||
done
|
||||
process_includes $src > $dest
|
||||
|
Loading…
Reference in New Issue
Block a user