Page MenuHomeFreeBSD
Paste P415

Command-Line Input
ActivePublic

Authored by swills on Aug 11 2020, 11:28 PM.
Tags
None
Referenced Files
F7805995: Command-Line Input
Aug 11 2020, 11:28 PM
Subscribers
None
# $FreeBSD$
PORTNAME= ports-tree-svn-revision
CATEGORIES= ports-mgmt
DISTFILES= # none
MAINTAINER= swills@FreeBSD.org
COMMENT= Package indicating the current ports tree svn revision
.include <bsd.port.pre.mk>
.if exists(${PORTSDIR}/.svn)
REV!= svnliteversion ${PORTSDIR} | ${SED} -e s/M//g
BRANCH!= svnlite info ${PORTSDIR} | ${GREP} '^URL:' | ${SED} -e s,.*ports/,, -e 's,.*branches/,,'
PORTVERSION= r${REV}-${BRANCH}
.else
IGNORE= not a subversion checkout
PORTVERSION= 0
.endif
NO_BUILD= yes
WRKSRC= ${WRKDIR}
PLIST_FILES= ${DOCSDIR}/svn-revision ${DOCSDIR}/svn-branch
do-configure:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${ECHO} r${REV} > ${STAGEDIR}${DOCSDIR}/svn-revision
@${ECHO} ${BRANCH} > ${STAGEDIR}${DOCSDIR}/svn-branch
do-install:
@${DO_NADA}
.include <bsd.port.post.mk>