diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 01:50:24 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-23 04:42:16 -0500 |
commit | 833eb54f6c9bb6102fb1ccd233370edf47f9befd (patch) | |
tree | 5af4c19625f34ff8cb7a2733ff0717b70c6bbbbe | |
parent | 337678825dc1cdb1692214d2c79c6e6a7ee5a503 (diff) | |
download | sbpython3-833eb54f6c9bb6102fb1ccd233370edf47f9befd.tar.bz2 sbpython3-833eb54f6c9bb6102fb1ccd233370edf47f9befd.tar.xz |
bulid system: version.sh: sub-shell syntax: replace backquotes with $().
-rwxr-xr-x | sysinfo/version.sh | 6 |
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 |