transforms/locale
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Fri, 28 Jan 2011 11:44:21 -0800
changeset 65 1fa3eaf1bf9d
parent 63 7d2e9f451dff
child 145 1e2390f5555e
permissions -rw-r--r--
7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     1
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     3
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     7
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    12
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    18
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    20
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    21
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    22
#
63
7d2e9f451dff 7014413 userland should not include _ in facet.locale.* names
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 53
diff changeset
    23
# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
15
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    24
#
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    25
21f7a7ab78ba add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    26
# general locale
53
e398cb2c4b45 7004049 SUNWa2ps should move to userland with a2ps
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 22
diff changeset
    27
<transform dir link hardlink path=.*/locale$ -> default facet.locale true>
22
b89eb90ac9c5 Add locale facet tagging to IPS makefile rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 15
diff changeset
    28
53
e398cb2c4b45 7004049 SUNWa2ps should move to userland with a2ps
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 22
diff changeset
    29
<transform dir file link hardlink \
65
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    30
    path=.*/locale/([^/]+)(\..+){0,1}(/.+){0,1}$ -> \
53
e398cb2c4b45 7004049 SUNWa2ps should move to userland with a2ps
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 22
diff changeset
    31
    default facet.locale.%<\1> true>
65
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    32
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    33
# skip pkglint(1) on actions where where facet.locale tags contains '_' until
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    34
# we can change this to only skip the '_' in attribute name warning.
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    35
<transform dir file link hardlink \
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    36
    path=.*/locale/[^_/]+_[^/]+(/.+){0,1}$ -> \
1fa3eaf1bf9d 7014413 userland should not include _ in facet.locale.* names (fix pkglint)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 63
diff changeset
    37
    default pkg.linted true>