]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
chore: stat isn't portable, wc is
authorRoy Marples <roy@marples.name>
Fri, 21 Apr 2023 13:58:25 +0000 (14:58 +0100)
committerRoy Marples <roy@marples.name>
Fri, 21 Apr 2023 13:58:50 +0000 (14:58 +0100)
Makefile

index f8460c6835fae43045acd4021c92c7951735280d..a930d301ec0dd1f4b42ad9289533a0ef2d78a19c 100644 (file)
--- 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}