Don't match on "version" when found as a value.

Approved by:	bapt
This commit is contained in:
Brad Davis 2015-11-17 21:10:15 +00:00
parent bc7f5841b3
commit 2cc77b79b8

View File

@ -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 \