Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff Makefile @ 67:259e2a4b4ca6
Enhance keyword expansion: HGid and Header are now provided.
Used currently in this project: $HGid$
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Thu, 21 Mar 2019 16:47:51 +0100 |
| parents | 1f3a64254c9c |
| children | b751799718d1 |
line wrap: on
line diff
--- a/Makefile Thu Mar 21 16:28:45 2019 +0100 +++ b/Makefile Thu Mar 21 16:47:51 2019 +0100 @@ -26,6 +26,7 @@ HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} HGPATH= ${:!hg --config ui.paginate=never path -R "${SRC}" ${HGCANONICALPATH} || echo "file://\$$\(hg root)"!} +HGPHASE= ${:!hg phase!:[2]} do-extract: ${MKDIR} ${WRKSRC}/bin @@ -36,6 +37,8 @@ ${SED} -i "" -E -e "s|\\\$$Author\\\$$|\$$Author: ${HGAUTHOR} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|\\\$$HGpath\\\$$|\$$HGpath: ${HGPATH} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|\\\$$HGsource\\\$$|\$$HGsource: ${HGPATH}/${_rp} \$$|" ${WRKSRC}/${_rp} + ${SED} -i "" -e "s|\\\$$Header\\\$$|\$$Header: ${_rp} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_rp} + ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_rp} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|@@INDEXFILE@@|${INDEXFILE}|" ${WRKSRC}/${_rp}
