Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 26:26eb2f62d6a3
Use make's variable modification instead of the "echo | tr" construct to remove a possible trailing '+' (dirty marker) from a Mercurial revision
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 17 Nov 2017 09:28:09 +0100 |
| parents | bba3470217c4 |
| children | a105a7fc801f |
| files | Makefile |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Fri Nov 17 09:23:37 2017 +0100 +++ b/Makefile Fri Nov 17 09:28:09 2017 +0100 @@ -21,8 +21,8 @@ PLIST_FILES= bin/check-ports HGREVISION:= ${:!hg id -R "${SRC}" -q!} -HGDATE:= ${:!hg log -R "${SRC}" -r `echo "${HGREVISION}" | tr '+' ' '` --template '{date|isodatesec}'!} -HGAUTHOR:= ${:!hg log -R "${SRC}" -r `echo "${HGREVISION}" | tr '+' ' '` --template '{author|person}'!} +HGDATE:= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} +HGAUTHOR:= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}'!} HGPATH:= ${:!hg paths -R "${SRC}" default!} do-extract:
