From: Roy Marples Date: Fri, 21 Apr 2023 13:58:25 +0000 (+0100) Subject: chore: stat isn't portable, wc is X-Git-Tag: v10.0.2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=890169267cb48a9afe34a8da99449e178c7b5d57;p=thirdparty%2Fdhcpcd.git chore: stat isn't portable, wc is --- diff --git a/Makefile b/Makefile index f8460c68..a930d301 100644 --- a/Makefile +++ b/Makefile @@ -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}