comparison Makefile @ 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
comparison
equal deleted inserted replaced
25:bba3470217c4 26:26eb2f62d6a3
19 SRC= ${.CURDIR} 19 SRC= ${.CURDIR}
20 20
21 PLIST_FILES= bin/check-ports 21 PLIST_FILES= bin/check-ports
22 22
23 HGREVISION:= ${:!hg id -R "${SRC}" -q!} 23 HGREVISION:= ${:!hg id -R "${SRC}" -q!}
24 HGDATE:= ${:!hg log -R "${SRC}" -r `echo "${HGREVISION}" | tr '+' ' '` --template '{date|isodatesec}'!} 24 HGDATE:= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!}
25 HGAUTHOR:= ${:!hg log -R "${SRC}" -r `echo "${HGREVISION}" | tr '+' ' '` --template '{author|person}'!} 25 HGAUTHOR:= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}'!}
26 HGPATH:= ${:!hg paths -R "${SRC}" default!} 26 HGPATH:= ${:!hg paths -R "${SRC}" default!}
27 27
28 do-extract: 28 do-extract:
29 ${MKDIR} ${WRKSRC}/bin 29 ${MKDIR} ${WRKSRC}/bin
30 .for _rp in ${PLIST_FILES} 30 .for _rp in ${PLIST_FILES}