Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison Makefile @ 43:22b7c9e08b13
Make the name of the canonical Mercurial path configurable.
Thus introduced a make variable named "HGCANONICALPATH".
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Wed, 22 Nov 2017 08:54:51 +0100 |
| parents | ce7023fc4f71 |
| children | 094324510aa2 |
comparison
equal
deleted
inserted
replaced
| 42:ace5d471abbd | 43:22b7c9e08b13 |
|---|---|
| 21 | 21 |
| 22 SRC= ${.CURDIR} | 22 SRC= ${.CURDIR} |
| 23 | 23 |
| 24 PLIST_FILES= bin/check-ports | 24 PLIST_FILES= bin/check-ports |
| 25 | 25 |
| 26 HGCANONICALPATH?= default | |
| 26 HGREVISION= ${:!hg id -R "${SRC}" -q!} | 27 HGREVISION= ${:!hg id -R "${SRC}" -q!} |
| 27 HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} | 28 HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} |
| 28 HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} | 29 HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} |
| 29 HGPATH= ${:!hg --config ui.paginate=never path -R "${SRC}" default || echo "file://`hg root`"!} | 30 HGPATH= ${:!hg --config ui.paginate=never path -R "${SRC}" ${HGCANONICALPATH} || echo "file://`hg root`"!} |
| 30 | 31 |
| 31 do-extract: | 32 do-extract: |
| 32 ${MKDIR} ${WRKSRC}/bin | 33 ${MKDIR} ${WRKSRC}/bin |
| 33 .for _rp in ${PLIST_FILES} | 34 .for _rp in ${PLIST_FILES} |
| 34 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} | 35 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} |
