make-rules/ips.mk | ●●●●● patch | view | raw | blame | history | |
transforms/final-cleanup | ●●●●● patch | view | raw | blame | history |
make-rules/ips.mk
@@ -85,6 +85,8 @@ PUBLISH_TRANSFORMS += $(PKGMOGRIFY_TRANSFORMS) PUBLISH_TRANSFORMS += $(WS_TOP)/transforms/publish-cleanup FINAL_TRANSFORMS += $(WS_TOP)/transforms/final-cleanup define add-limiting-variable PKG_VARS += $(1) MANIFEST_LIMITING_VARS += -D $(1)="$(subst #,\#,$($(1)))" @@ -482,7 +484,9 @@ # Do all the hard work that is needed to ensure the package is consistent # and ready for publishing, except actually pushing bits to a repository $(MANIFEST_BASE)-%.pre-published: $(MANIFEST_BASE)-%.depend.res $(BUILD_DIR)/.linted-$(MACH) $(CP) $< $@ $(PKGMOGRIFY) $(PKG_OPTIONS) $< \ $(FINAL_TRANSFORMS) | \ sed -e '/^$$/d' -e '/^#.*$$/d' | uniq >$@ @echo "NEW PACKAGE CONTENTS ARE LOCALLY VALIDATED AND READY TO GO" # Push to the repo transforms/final-cleanup
New file @@ -0,0 +1,26 @@ # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"). You may # only use this file in accordance with the terms of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2019 Alexander Pyhalov # # # These transforms drop the information that we don't want to appear # in final package versions. # # Drop pkg.depend.bypass-generate attributes <transform file -> \ delete pkg.depend.bypass-generate .* > # Drop pkg.depend.runpath attributes <transform file -> \ delete pkg.depend.runpath .* >