Page MenuHomeFreeBSD

D55412.id172395.diff
No OneTemporary

D55412.id172395.diff

diff --git a/Makefile.inc1 b/Makefile.inc1
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2272,17 +2272,24 @@
create-world-package-${pkgname}: .PHONY
@sh ${SRCDIR}/release/packages/generate-ucl.sh -o ${pkgname} \
-s ${SRCDIR} -u ${WSTAGEDIR}/${pkgname}.ucl
- @awk -F\" ' \
- /^name/ { printf("===> Creating %s-", $$2); next } \
- /^version/ { print $$2; next } \
- ' ${WSTAGEDIR}/${pkgname}.ucl
- ${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
- -o OSVERSION="${SRCRELDATE}" \
- create -f ${PKG_FORMAT} ${PKG_CLEVEL} -T${PKG_CTHREADS} \
- -M ${WSTAGEDIR}/${pkgname}.ucl \
- -p ${WSTAGEDIR}/${pkgname}.plist \
- -r ${WSTAGEDIR} \
- -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
+ @if [ "$$(grep -vc '^@dir' ${WSTAGEDIR}/${pkgname}.plist)" -gt 0 ]; then \
+ awk -F\" ' \
+ /^name/ { printf("===> Creating %s-", $$2); next } \
+ /^version/ { print $$2; next } \
+ ' ${WSTAGEDIR}/${pkgname}.ucl && \
+ ${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
+ -o OSVERSION="${SRCRELDATE}" \
+ create -f ${PKG_FORMAT} ${PKG_CLEVEL} -T${PKG_CTHREADS} \
+ -M ${WSTAGEDIR}/${pkgname}.ucl \
+ -p ${WSTAGEDIR}/${pkgname}.plist \
+ -r ${WSTAGEDIR} \
+ -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}; \
+ else \
+ awk -F\" ' \
+ /^name/ { printf("===> Skipping %s-", $$2); next } \
+ /^version/ { print $$2; next } \
+ ' ${WSTAGEDIR}/${pkgname}.ucl; \
+ fi
.endfor
create-sets-packages-jobs: .PHONY create-sets-packages

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 25, 4:47 AM (49 m, 43 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28932234
Default Alt Text
D55412.id172395.diff (1 KB)

Event Timeline