Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135435907
D8158.id21090.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8158.id21090.diff
View Options
Index: head/gnu/usr.bin/groff/Makefile.inc
===================================================================
--- head/gnu/usr.bin/groff/Makefile.inc
+++ head/gnu/usr.bin/groff/Makefile.inc
@@ -119,7 +119,7 @@
-e "s;@TMAC_MDIR@;$(tmacdir)/mm;g" \
-e "s;@BROKEN_SPOOLER_FLAGS@;$(BROKEN_SPOOLER_FLAGS);g" \
-e "s;@VERSION@;$(version)$(revision);g" \
- -e "s;@MDATE@;`$(SHELL) ${GROFF_DIST}/mdate.sh $<`;g" \
+ -e "s;@MDATE@;$(MDATE);g" \
-e "s;@g@;$(g);g" \
-e "s;@G@;`echo $(g) | LC_ALL=C tr a-z A-Z`;g" \
$< >$@
@@ -141,4 +141,5 @@
GROFF_DIST= ${.CURDIR}/${TOPREL}/../../../contrib/groff
DIST_SUBDIR?= ${.CURDIR:T}
DIST_DIR= ${GROFF_DIST}/${DIST_SUBDIR}
+MDATE!= sh ${.CURDIR}/${TOPREL}/mdate.sh ${GROFF_DIST}/ChangeLog
.PATH: ${DIST_DIR}
Index: head/gnu/usr.bin/groff/mdate.sh
===================================================================
--- head/gnu/usr.bin/groff/mdate.sh
+++ head/gnu/usr.bin/groff/mdate.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# $FreeBSD$
+
+set -e
+test -r "$1"
+export LC_ALL=C
+changelog_date=$(sed -E -n 's/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*$/\1/p' "$1" |\
+ head -n 1)
+echo $(date -j -f %Y-%m-%d +"%e %B %Y" $changelog_date)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 8:40 PM (54 m, 51 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25107345
Default Alt Text
D8158.id21090.diff (1 KB)
Attached To
Mode
D8158: groff: use changelog date rather than file modification date in man pages
Attached
Detach File
Event Timeline
Log In to Comment