Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P415
Command-Line Input
Active
Public
Actions
Authored by
swills
on Aug 11 2020, 11:28 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F7805995: Command-Line Input
Aug 11 2020, 11:28 PM
2020-08-11 23:28:51 (UTC+0)
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>
Event Timeline
swills
created this paste.
Aug 11 2020, 11:28 PM
2020-08-11 23:28:50 (UTC+0)
Log In to Comment