summaryrefslogtreecommitdiffstats
path: root/scripts/feature_to_c.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/feature_to_c.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/feature_to_c.sh')
-rw-r--r--scripts/feature_to_c.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/feature_to_c.sh b/scripts/feature_to_c.sh
index e4387b7fcf..c8ce9b88f6 100644
--- a/scripts/feature_to_c.sh
+++ b/scripts/feature_to_c.sh
@@ -33,7 +33,7 @@ if test -e "$output"; then
fi
for input; do
- arrayname=xml_feature_`echo $input | sed 's,.*/,,; s/[-.]/_/g'`
+ arrayname=xml_feature_$(echo $input | sed 's,.*/,,; s/[-.]/_/g')
${AWK:-awk} 'BEGIN { n = 0
printf "#include \"qemu/osdep.h\"\n"
@@ -67,8 +67,8 @@ echo >> $output
echo "const char *const xml_builtin[][2] = {" >> $output
for input; do
- basename=`echo $input | sed 's,.*/,,'`
- arrayname=xml_feature_`echo $input | sed 's,.*/,,; s/[-.]/_/g'`
+ basename=$(echo $input | sed 's,.*/,,')
+ arrayname=xml_feature_$(echo $input | sed 's,.*/,,; s/[-.]/_/g')
echo " { \"$basename\", $arrayname }," >> $output
done