From: Roy Marples Date: Fri, 21 Apr 2023 13:58:25 +0000 (+0100) Subject: chore: stat isn't portable, wc is X-Git-Tag: v9.5.2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4467f0dbbf91f1844cb66a4a38d70ed95c05c8d;p=thirdparty%2Fdhcpcd.git chore: stat isn't portable, wc is --- diff --git a/Makefile b/Makefile index 2a7b9a51..69512d8d 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,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}