From d4b6fcdc9fa5bbe19d70bd1c5aaa40e34fb205a5 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 23 Dec 2018 01:50:24 -0500 Subject: bulid system: version.sh: sub-shell syntax: replace backquotes with $(). --- sysinfo/version.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysinfo') 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 -- cgit v1.2.3