From: Kevin McCarthy Date: Sun, 3 Jun 2018 21:40:31 +0000 (-0700) Subject: Switch build scripts to use `` instead of $() X-Git-Tag: mutt-1-10-1-rel~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33290d1263740b56e1b84604c8670fcd76bbc617;p=mutt Switch build scripts to use `` instead of $() This is for older systems running Bourne shell as /bin/sh. --- diff --git a/mkchangelog.sh b/mkchangelog.sh index 9f551012..8a257023 100755 --- a/mkchangelog.sh +++ b/mkchangelog.sh @@ -5,7 +5,7 @@ # This would generate based on the last update of the ChangeLog, instead: # lrev=$(git log -1 --pretty=format:"%H" ChangeLog) -lrev=$(git describe --tags --match 'mutt-*-rel' --abbrev=0) +lrev=`git describe --tags --match 'mutt-*-rel' --abbrev=0` # This is a rough approximation of the official ChangeLog format # previously generated by hg. Git doesn't provide enough formatting 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 diff --git a/version.sh b/version.sh index 537be325..f81b71eb 100644 --- a/version.sh +++ b/version.sh @@ -10,10 +10,10 @@ srcdir=`dirname "$0"` && cd "$srcdir" || exit 1 { [ -r ".git" ] && command -v git >/dev/null 2>&1; } \ || exec cat VERSION -latesttag="$(git describe --tags --match 'mutt-*-rel' --abbrev=0)" -version="$(echo $latesttag | sed -e s/mutt-// -e s/-rel// -e s/-/./g)" -distance="$(git rev-list --count $latesttag..)" -commitid="$(git rev-parse --short HEAD)" +latesttag=`git describe --tags --match 'mutt-*-rel' --abbrev=0` +version=`echo $latesttag | sed -e s/mutt-// -e s/-rel// -e s/-/./g` +distance=`git rev-list --count $latesttag..` +commitid=`git rev-parse --short HEAD` if [ $distance -eq 0 ]; then distance=