chore: stat isn't portable, wc is

This commit is contained in:
Roy Marples 2023-04-21 14:58:25 +01:00
parent 6bb2a69338
commit 890169267c

View File

@ -69,7 +69,8 @@ dist: ${DIST}
distinfo: dist
rm -f ${DISTINFO} ${DISTSIGN}
${SHA256} ${DISTFILE} >${DISTINFO}
stat -f "Size (${DISTFILE}) = %z" ${DISTFILE} >>${DISTINFO}
wc -c <${DISTFILE} \
| xargs printf 'Size (${DISTFILE}) = %s\n' >>${DISTINFO}
${PGP} --armour --detach-sign ${DISTFILE}
chmod 644 ${DISTSIGN}
ls -l ${DISTFILE} ${DISTINFO} ${DISTSIGN}