This is for older systems running Bourne shell as /bin/sh.
# 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
# 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
{ [ -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=