# HG changeset patch # User Franz Glasner # Date 1510907289 -3600 # Node ID 26eb2f62d6a3aa3faed73a75b3e8b62071fd3117 # Parent bba3470217c4626a7ab5ae1c21f7df3535243cdc Use make's variable modification instead of the "echo | tr" construct to remove a possible trailing '+' (dirty marker) from a Mercurial revision diff -r bba3470217c4 -r 26eb2f62d6a3 Makefile --- 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: