~kevin8t8/mutt

ref: 2fbc29ec127aa3d699def01e574f14996db8cacc mutt/mkreldate.sh -rwxr-xr-x 302 bytes
2fbc29ecKevin McCarthy Allow my_var assignments to reference the $my_var in the value. 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