summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-23 01:50:24 -0500
committermidipix <writeonce@midipix.org>2018-12-24 10:51:55 -0500
commit73448bcf965a94d04258d058291da6822a7cab89 (patch)
tree120c00a10a0d17193e77d43a75849496cf1d9bf9
parent56fe2fe0f3a4fdaaa460dcdd6dc94e5c8950810d (diff)
downloadapimagic-73448bcf965a94d04258d058291da6822a7cab89.tar.bz2
apimagic-73448bcf965a94d04258d058291da6822a7cab89.tar.xz
bulid system: version.sh: sub-shell syntax: replace backquotes with $().
-rwxr-xr-xsysinfo/version.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysinfo/version.sh b/sysinfo/version.sh
index 0b948bc..1c1467a 100755
--- a/sysinfo/version.sh
+++ b/sysinfo/version.sh
@@ -51,11 +51,11 @@ fi
cd "$srcdir" || exit 2
-gitver=`git rev-parse --verify HEAD 2>/dev/null` || gitver="unknown"
-macro=`echo "$prefix"_GIT_VERSION | tr '[:lower:]' '[:upper:]'`
+gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown"
+macro=$(echo "$prefix"_GIT_VERSION | tr '[:lower:]' '[:upper:]')
cd "$workdir" || exit 2
-mkdir -p `dirname "$output"` || exit 2
+mkdir -p $(dirname "$output") || exit 2
printf "#define $macro\t\"$gitver\"\n" > "$output"
# all done