~kevin8t8/mutt

ref: mutt-1-11-4-rel mutt/mkreldate.sh -rwxr-xr-x 302 bytes View raw
207b9306Kevin McCarthy automatic post-release commit for mutt-1.11.4 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# 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"`
else
  reldate=`head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1`
fi

echo $reldate