summaryrefslogtreecommitdiffstats
path: root/scripts/make_device_config.sh
diff options
context:
space:
mode:
authorStefan Weil2016-05-16 15:23:33 +0200
committerMichael Tokarev2016-06-07 17:19:23 +0200
commitbbd908025c530b57f57b5c5b739d53e28c1e59fc (patch)
tree16ae024b85e2676bece118a3a0ae1003edf37d55 /scripts/make_device_config.sh
parentconfigure: Use $(..) instead of deprecated `..` (diff)
downloadqemu-bbd908025c530b57f57b5c5b739d53e28c1e59fc.tar.gz
qemu-bbd908025c530b57f57b5c5b739d53e28c1e59fc.tar.xz
qemu-bbd908025c530b57f57b5c5b739d53e28c1e59fc.zip
scripts: Use $(..) instead of deprecated `..`
This fixes these warnings from shellcheck: ^-- SC2006: Use $(..) instead of deprecated `..` Update also a comment using the same pattern. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/make_device_config.sh')
-rw-r--r--scripts/make_device_config.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/make_device_config.sh b/scripts/make_device_config.sh
index c1afb3ffaa..354af317b3 100644
--- a/scripts/make_device_config.sh
+++ b/scripts/make_device_config.sh
@@ -7,7 +7,7 @@
src=$1
dep=$2
target=$3
-src_dir=`dirname $src`
+src_dir=$(dirname $src)
all_includes=
process_includes () {
@@ -20,7 +20,7 @@ process_includes () {
f=$src
while [ -n "$f" ] ; do
- f=`cat $f | tr -d '\r' | 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