mutt stable branch with some hacks
1#!/bin/sh
2#
3# Generates the reldate.h contents from either git or the ChangeLog file
4
5if [ -r ".git" ] && command -v git >/dev/null 2>&1; then
6 reldate=`TZ=UTC git log -1 --date=format-local:"%F" --pretty=format:"%cd"`
7else
8 reldate=`head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1`
9fi
10
11echo $reldate