xref: /onnv-gate/usr/src/pkg/transforms/publish (revision 11838:32bb5d254240)
1*11838SLiane.Praza@Sun.COM#
2*11838SLiane.Praza@Sun.COM# CDDL HEADER START
3*11838SLiane.Praza@Sun.COM#
4*11838SLiane.Praza@Sun.COM# The contents of this file are subject to the terms of the
5*11838SLiane.Praza@Sun.COM# Common Development and Distribution License (the "License").
6*11838SLiane.Praza@Sun.COM# You may not use this file except in compliance with the License.
7*11838SLiane.Praza@Sun.COM#
8*11838SLiane.Praza@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*11838SLiane.Praza@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*11838SLiane.Praza@Sun.COM# See the License for the specific language governing permissions
11*11838SLiane.Praza@Sun.COM# and limitations under the License.
12*11838SLiane.Praza@Sun.COM#
13*11838SLiane.Praza@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*11838SLiane.Praza@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*11838SLiane.Praza@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*11838SLiane.Praza@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*11838SLiane.Praza@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*11838SLiane.Praza@Sun.COM#
19*11838SLiane.Praza@Sun.COM# CDDL HEADER END
20*11838SLiane.Praza@Sun.COM#
21*11838SLiane.Praza@Sun.COM
22*11838SLiane.Praza@Sun.COM#
23*11838SLiane.Praza@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24*11838SLiane.Praza@Sun.COM# Use is subject to license terms.
25*11838SLiane.Praza@Sun.COM#
26*11838SLiane.Praza@Sun.COM
27*11838SLiane.Praza@Sun.COM#
28*11838SLiane.Praza@Sun.COM# Only publish packages for the currently specified architecture
29*11838SLiane.Praza@Sun.COM#
30*11838SLiane.Praza@Sun.COM# This is somewhat nonintuitive.  In English:
31*11838SLiane.Praza@Sun.COM#
32*11838SLiane.Praza@Sun.COM#	For any action of type "set",
33*11838SLiane.Praza@Sun.COM#	if the "name" property matches the regex "variant.arch",
34*11838SLiane.Praza@Sun.COM#	and *every* occurrence of the "value" property does not match
35*11838SLiane.Praza@Sun.COM#		$ARCH, then don't publish it.
36*11838SLiane.Praza@Sun.COM#
37*11838SLiane.Praza@Sun.COM# ...in other words, if *any* occurrence of "value" matches $(ARCH),
38*11838SLiane.Praza@Sun.COM# then the negative lookahead assertion in the regex will fail, and we
39*11838SLiane.Praza@Sun.COM# won't abort based on the action.
40*11838SLiane.Praza@Sun.COM#
41*11838SLiane.Praza@Sun.COM<transform set name=variant.arch value=^(?!$(ARCH)).+$ -> abort>
42*11838SLiane.Praza@Sun.COM
43*11838SLiane.Praza@Sun.COM#
44*11838SLiane.Praza@Sun.COM# Don't publish nonredistributable manifests in an open-only build
45*11838SLiane.Praza@Sun.COM#
46*11838SLiane.Praza@Sun.COM$(OPEN_BUILD)<transform set name=org.opensolaris.redist value=nonredist|internal -> abort>
47*11838SLiane.Praza@Sun.COM
48*11838SLiane.Praza@Sun.COM#
49*11838SLiane.Praza@Sun.COM# Catch don't-publish settings from manifest-embedded transforms
50*11838SLiane.Praza@Sun.COM#
51*11838SLiane.Praza@Sun.COM<transform set name=osnet.publish value=false -> abort>
52*11838SLiane.Praza@Sun.COM<transform set name=osnet.publish -> drop>
53