mdate.sh revision 308805
1#!/bin/sh
2# $FreeBSD: stable/10/gnu/usr.bin/groff/mdate.sh 308805 2016-11-18 16:05:32Z emaste $
3
4set -e
5test -r "$1"
6export LC_ALL=C
7changelog_date=$(sed -E -n '1s/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*$/\1/p' "$1")
8echo $(date -j -f %Y-%m-%d +"%e %B %Y" $changelog_date)
9