transforms/generate-cleanup
changeset 5125 34cc580c62c2
parent 26 8a9f4e791832
child 5331 9c955076ffe3
equal deleted inserted replaced
5124:3a6b9e3809f7 5125:34cc580c62c2
    39 <transform dir file link hardlink license -> delete mode .*>
    39 <transform dir file link hardlink license -> delete mode .*>
    40 
    40 
    41 #<transform set name=pkg.fmri -> edit value "@[^ \t\n\r\f\v]*" "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)">
    41 #<transform set name=pkg.fmri -> edit value "@[^ \t\n\r\f\v]*" "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)">
    42 
    42 
    43 <transform dir file link hardlink -> \
    43 <transform dir file link hardlink -> \
    44 	edit path "/(sparcv9|amd64)$" "/$!(MACH64)">
    44     edit path "/(sparcv9|amd64)$" "/$!(MACH64)">
    45 <transform dir file link hardlink -> \
    45 <transform dir file link hardlink -> \
    46 	edit path "/(sparcv9|amd64)/" "/$!(MACH64)/">
    46     edit path "/(sparcv9|amd64)/" "/$!(MACH64)/">
    47 <transform dir file link hardlink -> \
    47 <transform dir file link hardlink -> \
    48 	edit path "/(sparcv7|i86)$" "/$!(MACH32)">
    48     edit path "/(sparcv7|i86)$" "/$!(MACH32)">
    49 <transform dir file link hardlink -> \
    49 <transform dir file link hardlink -> \
    50 	edit path "/(sparcv7|i86)/" "/$!(MACH32)/">
    50     edit path "/(sparcv7|i86)/" "/$!(MACH32)/">
    51 <transform dir file link hardlink -> \
    51 <transform dir file link hardlink -> \
    52 	edit path "/(sparc|i386)$" "/$!(MACH)">
    52     edit path "/(sparc|i386)$" "/$!(MACH)">
    53 <transform dir file link hardlink -> \
    53 <transform dir file link hardlink -> \
    54 	edit path "/(sparc|i386)/" "/$!(MACH)/">
    54     edit path "/(sparc|i386)/" "/$!(MACH)/">
    55 <transform dir file link hardlink -> \
    55 <transform dir file link hardlink -> \
    56 	edit path "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
    56     edit path "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
    57 
    57 
    58 <transform dir file link hardlink -> \
    58 <transform dir file link hardlink -> \
    59 	edit target "/(sparcv9|amd64)$" "/$!(MACH64)">
    59     edit target "/(sparcv9|amd64)$" "/$!(MACH64)">
    60 <transform dir file link hardlink -> \
    60 <transform dir file link hardlink -> \
    61 	edit target "/(sparcv9|amd64)/" "/$!(MACH64)/">
    61     edit target "/(sparcv9|amd64)/" "/$!(MACH64)/">
    62 <transform dir file link hardlink -> \
    62 <transform dir file link hardlink -> \
    63 	edit target "/(sparcv7|i86)$" "/$!(MACH32)">
    63     edit target "/(sparcv7|i86)$" "/$!(MACH32)">
    64 <transform dir file link hardlink -> \
    64 <transform dir file link hardlink -> \
    65 	edit target "/(sparcv7|i86)/" "/$!(MACH32)/">
    65     edit target "/(sparcv7|i86)/" "/$!(MACH32)/">
    66 <transform dir file link hardlink -> \
    66 <transform dir file link hardlink -> \
    67 	edit target "/(sparc|i386)$" "/$!(MACH)">
    67     edit target "/(sparc|i386)$" "/$!(MACH)">
    68 <transform dir file link hardlink -> \
    68 <transform dir file link hardlink -> \
    69 	edit target "/(sparc|i386)/" "/$!(MACH)/">
    69     edit target "/(sparc|i386)/" "/$!(MACH)/">
    70 <transform dir file link hardlink -> \
    70 <transform dir file link hardlink -> \
    71 	edit target "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
    71     edit target "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
    72 
    72 
    73 # <transform dir file link hardlink -> \
    73 # <transform dir file link hardlink -> \
    74 # 	edit path "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
    74 # 	edit path "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
    75 # <transform dir file link hardlink -> \
    75 # <transform dir file link hardlink -> \
    76 # 	edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
    76 # 	edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
    77 
    77 
    78 <transform dir file link hardlink -> \
    78 <transform dir file link hardlink -> \
    79 	edit path "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
    79     edit path "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
    80 <transform dir file link hardlink -> \
    80 <transform dir file link hardlink -> \
    81 	edit target "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
    81     edit target "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
    82 
    82 
    83 <transform dir file link hardlink -> \
    83 <transform dir file link hardlink -> \
    84 	edit path "$(IPS_VERSION)" "$!(IPS_VERSION)">
    84     edit path "$(IPS_VERSION)" "$!(IPS_VERSION)">
    85 <transform dir file link hardlink -> \
    85 <transform dir file link hardlink -> \
    86 	edit target "$(IPS_VERSION)" "$!(IPS_VERSION)">
    86     edit target "$(IPS_VERSION)" "$!(IPS_VERSION)">
    87 
    87 
    88 # convert temporary macro names to their real name
    88 # convert temporary macro names to their real name
    89 <transform set -> \
    89 <transform set -> \
    90 	edit value "\$!\((.*)\)" "$(\1)">
    90     edit value "\$!\((.*)\)" "$(\1)">
    91 <transform dir file link hardlink -> \
    91 <transform dir file link hardlink -> \
    92 	edit path "\$!\((.*)\)" "$(\1)">
    92     edit path "\$!\((.*)\)" "$(\1)">
    93 <transform dir file link hardlink -> \
    93 <transform dir file link hardlink -> \
    94 	edit target "\$!\((.*)\)" "$(\1)">
    94     edit target "\$!\((.*)\)" "$(\1)">
    95 <transform dir file link hardlink -> \
    95 <transform dir file link hardlink -> \
    96 	edit path "\$!\((.*)\)" "$(\1)">
    96     edit path "\$!\((.*)\)" "$(\1)">
    97 <transform dir file link hardlink -> \
    97 <transform dir file link hardlink -> \
    98 	edit target "\$!\((.*)\)" "$(\1)">
    98     edit target "\$!\((.*)\)" "$(\1)">
    99 <transform dir file link hardlink -> \
    99 <transform dir file link hardlink -> \
   100 	edit path "\$!\((.*)\)" "$(\1)">
   100     edit path "\$!\((.*)\)" "$(\1)">
   101 <transform dir file link hardlink -> \
   101 <transform dir file link hardlink -> \
   102 	edit target "\$!\((.*)\)" "$(\1)">
   102     edit target "\$!\((.*)\)" "$(\1)">
   103 <transform dir file link hardlink -> \
   103 <transform dir file link hardlink -> \
   104 	edit path "\$!\((.*)\)" "$(\1)">
   104     edit path "\$!\((.*)\)" "$(\1)">
   105 <transform dir file link hardlink -> \
   105 <transform dir file link hardlink -> \
   106 	edit target "\$!\((.*)\)" "$(\1)">
   106     edit target "\$!\((.*)\)" "$(\1)">
   107 <transform dir file link hardlink -> \
   107 <transform dir file link hardlink -> \
   108 	edit path "\$!\((.*)\)" "$(\1)">
   108     edit path "\$!\((.*)\)" "$(\1)">
   109 <transform dir file link hardlink -> \
   109 <transform dir file link hardlink -> \
   110 	edit target "\$!\((.*)\)" "$(\1)">
   110     edit target "\$!\((.*)\)" "$(\1)">
       
   111 
       
   112 # Omit "standard" directories and files we never want to ship (such as
       
   113 # libtool files).
       
   114 <transform dir path=etc$ -> drop>
       
   115 <transform dir path=etc/$\(MACH(32|64)\)$ -> drop>
       
   116 <transform dir path=usr$ -> drop>
       
   117 <transform dir path=usr/bin$ -> drop>
       
   118 <transform dir path=usr/bin/\$\(MACH(32|64)\)$ -> drop>
       
   119 <transform dir path=usr/include$ -> drop>
       
   120 <transform dir path=usr/lib$ -> drop>
       
   121 <transform dir path=usr/lib/pkgconfig$ -> drop>
       
   122 <transform dir path=usr/lib/\$\(MACH(32|64)\)$ -> drop>
       
   123 <transform dir path=usr/lib/\$\(MACH(32|64)\)/pkgconfig$ -> drop>
       
   124 <transform dir path=usr/share$ -> drop>
       
   125 <transform dir path=usr/share/aclocal$ -> drop>
       
   126 <transform dir path=usr/share/locale$ -> drop>
       
   127 <transform dir path=usr/share/locale/.*$ -> drop>
       
   128 <transform dir path=usr/share/man$ -> drop>
       
   129 <transform dir path=usr/share/man/.*$ -> drop>
       
   130 <transform dir path=usr/sbin$ -> drop>
       
   131 <transform dir path=usr/sbin/\$\(MACH(32|64)\)$ -> drop>
       
   132 <transform file path=.*\.la$ -> drop>