svn commit: r291006 - projects/release-pkg
Brad Davis
brd at FreeBSD.org
Tue Nov 17 21:10:17 UTC 2015
Author: brd (doc,ports committer)
Date: Tue Nov 17 21:10:15 2015
New Revision: 291006
URL: https://svnweb.freebsd.org/changeset/base/291006
Log:
Don't match on "version" when found as a value.
Approved by: bapt
Modified:
projects/release-pkg/Makefile.inc1
Modified: projects/release-pkg/Makefile.inc1
==============================================================================
--- projects/release-pkg/Makefile.inc1 Tue Nov 17 21:02:27 2015 (r291005)
+++ projects/release-pkg/Makefile.inc1 Tue Nov 17 21:10:15 2015 (r291006)
@@ -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 \
More information about the svn-src-projects
mailing list