diff options
author | midipix <writeonce@midipix.org> | 2018-12-23 01:50:24 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-24 10:53:18 -0500 |
commit | d35738fa76a0cce7a33c5a4e5bcd195d3a899d5a (patch) | |
tree | 3425550d7a2321bd73c513a736bd93876506d142 /sysinfo | |
parent | 7327b88e53c53d467db0b694944da49b3a768808 (diff) | |
download | w32lib-d35738fa76a0cce7a33c5a4e5bcd195d3a899d5a.tar.bz2 w32lib-d35738fa76a0cce7a33c5a4e5bcd195d3a899d5a.tar.xz |
bulid system: version.sh: sub-shell syntax: replace backquotes with $().
Diffstat (limited to 'sysinfo')
-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 |