diff --git a/Makefile.inc1 b/Makefile.inc1 index 12e2d4201c6..ca02627194d 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1272,8 +1272,10 @@ create-world-packages: -e "s/%PWD_MKDB_ENDIAN%/$${pwd_arg}/g" \ ${SRCDIR}/release/packages/$${pkgname}.ucl \ > ${DESTDIR}/$${pkgname}.ucl ; \ - awk -F\" '/name/ { printf("===> Creating %s-", $$2) } /version/ {print $$2 }' \ - ${DESTDIR}/$${pkgname}.ucl ; \ + awk -F\" ' \ + /^name/ { printf("===> Creating %s-", $$2); next } \ + /^version/ { print $$2; next } \ + ' ${DESTDIR}/$${pkgname}.ucl ; \ pkg -o ABI_FILE=${DESTDIR}/bin/sh \ create -M ${DESTDIR}/$${pkgname}.ucl \ -p ${DESTDIR}/$${pkgname}.plist \