xref: /titanic_50/usr/src/pkg/transforms/extract_metadata (revision 77c29b8ee88bf82021ff549b17b44e17f2ef7d7b)
1ead1f93eSLiane Praza#
2ead1f93eSLiane Praza# CDDL HEADER START
3ead1f93eSLiane Praza#
4ead1f93eSLiane Praza# The contents of this file are subject to the terms of the
5ead1f93eSLiane Praza# Common Development and Distribution License (the "License").
6ead1f93eSLiane Praza# You may not use this file except in compliance with the License.
7ead1f93eSLiane Praza#
8ead1f93eSLiane Praza# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ead1f93eSLiane Praza# or http://www.opensolaris.org/os/licensing.
10ead1f93eSLiane Praza# See the License for the specific language governing permissions
11ead1f93eSLiane Praza# and limitations under the License.
12ead1f93eSLiane Praza#
13ead1f93eSLiane Praza# When distributing Covered Code, include this CDDL HEADER in each
14ead1f93eSLiane Praza# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ead1f93eSLiane Praza# If applicable, add the following below this CDDL HEADER, with the
16ead1f93eSLiane Praza# fields enclosed by brackets "[]" replaced with your own identifying
17ead1f93eSLiane Praza# information: Portions Copyright [yyyy] [name of copyright owner]
18ead1f93eSLiane Praza#
19ead1f93eSLiane Praza# CDDL HEADER END
20ead1f93eSLiane Praza#
21ead1f93eSLiane Praza
22ead1f93eSLiane Praza#
23*5084e753SMark J. Nelson# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24ead1f93eSLiane Praza#
25ead1f93eSLiane Praza
26ead1f93eSLiane Praza#
27*5084e753SMark J. Nelson# Pull out the license paths for staging in the proto area.  Ignore
28*5084e753SMark J. Nelson# those with no path separators, as that indicates a file kept in
29*5084e753SMark J. Nelson# $SRC/pkg/license_files, rather than alongside the associated source.
30*5084e753SMark J. Nelson#
31*5084e753SMark J. Nelson<transform license license=.*/.+ -> print LICS="${LICS} %(license)">
32*5084e753SMark J. Nelson
33*5084e753SMark J. Nelson#
34ead1f93eSLiane Praza# Ordering is important here, and the last line wins.
35ead1f93eSLiane Praza#
36ead1f93eSLiane Praza# The default of "current" is provided by the calling environment,
37ead1f93eSLiane Praza# rather than a print operation.
38ead1f93eSLiane Praza#
39ead1f93eSLiane Praza<transform set name=pkg.renamed value=true -> print PKGSTAT=renamed>
40ead1f93eSLiane Praza<transform set name=pkg.obsolete value=true -> print PKGSTAT=obsolete>
41ead1f93eSLiane Praza<transform set name=org.opensolaris.nodepend value=true -> print NODEPEND=true>
42ead1f93eSLiane Praza<transform set name=org.opensolaris.nodepend -> drop>
43fe57a5b1SMark J. Nelson<transform set name=org.opensolaris.noincorp value=true -> print PKGSTAT=noincorp>
44fe57a5b1SMark J. Nelson<transform set name=org.opensolaris.noincorp -> drop>
45