1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved. |
|
22 # |
|
23 |
|
24 # |
|
25 # These transforms will automatically tag actions that are likely to be |
|
26 # architecture specific. This is only meant to aid folks in generating |
|
27 # manifests that properly tag actions. The results should be carefully |
|
28 # audited since it may tag architecture independent files that match the |
|
29 # the pattern space and may not tag architecture specific files that don't. |
|
30 # |
|
31 # It might also be useful to use "diff -rq" to determine the differences |
|
32 # between proto areas for multiple architectures, though take care to avoid |
|
33 # timestamp. |
|
34 # |
|
35 # Note: this uses and then replaces $!(ARCH) to avoid macro substitution |
|
36 # |
|
37 |
|
38 # add anything with the architecture embedded in the path |
|
39 <transform dir file link hardlink path=.*/\$\(MACH.*\) -> \ |
|
40 default variant.arch "$!(ARCH)"> |
|
41 <transform dir file link hardlink \ |
|
42 path=.*/(sparcv9|sparcv7|sparc|amd64|i86|i386)(/.*){0,1}$ -> \ |
|
43 default variant.arch "$!(ARCH)"> |
|
44 <transform dir file link hardlink \ |
|
45 path=.*/(sparc|i386)-(sun|pc)-solaris\d\.\d+ -> \ |
|
46 default variant.arch "$!(ARCH)"> |
|
47 |
|
48 # add anything that looks like a shared object |
|
49 <transform file path=.*/.+\.so(\.\d+)*$ -> \ |
|
50 default variant.arch "$!(ARCH)"> |
|
51 |
|
52 # add anything that looks like an archive library |
|
53 <transform file path=.*/lib.+\.a$ -> \ |
|
54 default variant.arch "$!(ARCH)"> |
|
55 |
|
56 # add anything that looks like a libtool .la file |
|
57 <transform file path=.*/.+\.la$ -> \ |
|
58 default variant.arch "$!(ARCH)"> |
|
59 |
|
60 # add "compiled" python files |
|
61 <transform dir file link hardlink path=.+\.pyc$ -> \ |
|
62 default variant.arch "$!(ARCH)"> |
|
63 |
|
64 # delete "raw" python scripts that we may have accidentally picked up |
|
65 <transform dir file link hardlink path=.+\.py$ variant.arch=\$!\(ARCH\) -> \ |
|
66 delete variant.arch .*> |
|
67 |
|
68 # convert "$!(ARCH)" to "$(ARCH)" |
|
69 <transform dir file link hardlink -> \ |
|
70 edit variant.arch "\$!\((.*)\)" "$(\1)"> |
|