From 2cc77b79b8b88b07370c34c4225204946207455d Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 17 Nov 2015 21:10:15 +0000 Subject: [PATCH] Don't match on "version" when found as a value. Approved by: bapt --- Makefile.inc1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 12e2d4201c6c..ca02627194df 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 \