summaryrefslogtreecommitdiffstats
path: root/mkreldate.sh
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-06-03 14:40:31 -0700
committerKevin McCarthy <kevin@8t8.us>2018-06-03 14:40:31 -0700
commit33290d1263740b56e1b84604c8670fcd76bbc617 (patch)
tree40e7d6adb25c5df8ccc4b87482a50e84fd118163 /mkreldate.sh
parentec96f5f5941e05fa79a8b15a02490ccca798322a (diff)
Switch build scripts to use `` instead of $()
This is for older systems running Bourne shell as /bin/sh.
Diffstat (limited to 'mkreldate.sh')
-rwxr-xr-xmkreldate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkreldate.sh b/mkreldate.sh
index b9be6373..927967d5 100755
--- a/mkreldate.sh
+++ b/mkreldate.sh
@@ -3,9 +3,9 @@
# Generates the reldate.h contents from either git or the ChangeLog file
if [ -r ".git" ] && command -v git >/dev/null 2>&1; then
- reldate=$(TZ=UTC git log -1 --date=format-local:"%F" --pretty=format:"%cd")
+ reldate=`TZ=UTC git log -1 --date=format-local:"%F" --pretty=format:"%cd"`
else
- reldate=$(head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1)
+ reldate=`head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1`
fi
echo $reldate