From: Gerd Hoffmann Date: Fri, 1 Feb 2013 09:48:34 +0000 (+0100) Subject: fix scripts/make_device_config.sh X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~900^2~59^2~767^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4ece4046344230a3a030ef1e494599eaf0a5935;p=sdk%2Femulator%2Fqemu.git fix scripts/make_device_config.sh Make it handle multiple include statements in a file: (1) The printf needs a space so the include files will be separated. (2) Also $f can contain multiple failes, so redirection will not work and we have to use cat to process all files. Signed-off-by: Gerd Hoffmann --- diff --git a/scripts/make_device_config.sh b/scripts/make_device_config.sh index 0778fe2a42..81fe94259d 100644 --- a/scripts/make_device_config.sh +++ b/scripts/make_device_config.sh @@ -18,7 +18,7 @@ process_includes () { f=$src while [ -n "$f" ] ; do - f=`tr -d '\r' < $f | awk '/^include / {printf "'$src_dir'/%s", $2}'` + f=`cat $f | tr -d '\r' | awk '/^include / {printf "'$src_dir'/%s ", $2}'` [ $? = 0 ] || exit 1 all_includes="$all_includes $f" done