Lines 95-101
Link Here
|
95 |
# If using git, use git log. The revision won't work with the generated links, |
95 |
# If using git, use git log. The revision won't work with the generated links, |
96 |
# because it is a hash, and git log doesn't know about git svn find-rev. |
96 |
# because it is a hash, and git log doesn't know about git svn find-rev. |
97 |
.if exists(${DOC_PREFIX}/.git) && exists(${GIT}) |
97 |
.if exists(${DOC_PREFIX}/.git) && exists(${GIT}) |
98 |
LATESTREVISION!=cd ${.CURDIR} && ${GIT} log -1 --pretty=format:'\ |
98 |
LATESTREVISION!=cd ${.CURDIR} && LC_ALL=C ${GIT} log -1 --pretty=format:'\ |
99 |
--stringparam latestrevision.timestamp "%ci" \ |
99 |
--stringparam latestrevision.timestamp "%ci" \ |
100 |
--stringparam latestrevision.committer "%cn" \ |
100 |
--stringparam latestrevision.committer "%cn" \ |
101 |
--stringparam latestrevision.number "%h"' ${SRCS} |
101 |
--stringparam latestrevision.number "%h"' ${SRCS} |
Lines 103-109
Link Here
|
103 |
# if using Subversion, get information from metadata |
103 |
# if using Subversion, get information from metadata |
104 |
# rather than embedded version strings |
104 |
# rather than embedded version strings |
105 |
.if exists(${DOC_PREFIX}/.svn) && exists(${SVN}) |
105 |
.if exists(${DOC_PREFIX}/.svn) && exists(${SVN}) |
106 |
LATESTREVISION!=cd ${.CURDIR} && ${SVN} info ${SRCS} 2>/dev/null | \ |
106 |
LATESTREVISION!=cd ${.CURDIR} && LC_ALL=C ${SVN} info ${SRCS} 2>/dev/null | \ |
107 |
${AWK} 'BEGIN { genfmt="--stringparam latestrevision."; \ |
107 |
${AWK} 'BEGIN { genfmt="--stringparam latestrevision."; \ |
108 |
timefmt=genfmt"timestamp \"%s %s\""; \ |
108 |
timefmt=genfmt"timestamp \"%s %s\""; \ |
109 |
comtfmt=genfmt"committer \"%s\""; \ |
109 |
comtfmt=genfmt"committer \"%s\""; \ |
Lines 121-127
Link Here
|
121 |
# the revision date from the timestamp of the most recent file and |
121 |
# the revision date from the timestamp of the most recent file and |
122 |
# set the revision number to "filedate" |
122 |
# set the revision number to "filedate" |
123 |
.if empty(LATESTREVISION) |
123 |
.if empty(LATESTREVISION) |
124 |
LATESTREVISION!=${STAT} 2>/dev/null -t '%F %T %Z' -f '\ |
124 |
LATESTREVISION!=cd ${.CURDIR} && ${STAT} 2>/dev/null -t '%F %T %Z' -f '\ |
125 |
--stringparam latestrevision.timestamp "%Sc" \ |
125 |
--stringparam latestrevision.timestamp "%Sc" \ |
126 |
--stringparam latestrevision.committer "%Su" \ |
126 |
--stringparam latestrevision.committer "%Su" \ |
127 |
--stringparam latestrevision.number "filedate"' \ |
127 |
--stringparam latestrevision.number "filedate"' \ |