]> granicus.if.org Git - mutt/commitdiff
Switch build scripts to use `` instead of $()
authorKevin McCarthy <kevin@8t8.us>
Sun, 3 Jun 2018 21:40:31 +0000 (14:40 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sun, 3 Jun 2018 21:40:31 +0000 (14:40 -0700)
This is for older systems running Bourne shell as /bin/sh.

mkchangelog.sh
mkreldate.sh
version.sh

index 9f551012859469971849fa870bdce1696ae91900..8a257023dcd50a2b8dc6529507105cf0eca12b38 100755 (executable)
@@ -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
index b9be6373d5d88bfda2a2bd85507afe338c827f0d..927967d566ab68107edc2a2f87786028efed400e 100755 (executable)
@@ -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
index 537be325c3b34ebea67460e5c15e8e839d161c3f..f81b71eb63832bf1eaa94db735a1e86073f7f576 100644 (file)
@@ -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=