Skip to content

Commit 24c1c19

Browse files
committed
chore: stat isn't portable, wc is
1 parent 59554e9 commit 24c1c19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ dist: ${DIST}
5656
distinfo: dist
5757
rm -f ${DISTINFO} ${DISTSIGN}
5858
${SHA256} ${DISTFILE} >${DISTINFO}
59-
stat -f "Size (${DISTFILE}) = %z" ${DISTFILE} >>${DISTINFO}
59+
wc -c <${DISTFILE} \
60+
| xargs printf 'Size (${DISTFILE}) = %s\n' >>${DISTINFO}
6061
${PGP} --armour --detach-sign ${DISTFILE}
6162
chmod 644 ${DISTSIGN}
6263
ls -l ${DISTFILE} ${DISTINFO} ${DISTSIGN}

0 commit comments

Comments
 (0)