author  Drew Fisher <drew.fisher@oracle.com> 
Fri, 13 Jun 2014 10:00:52 0600  
changeset 1947  b80524cd88bc 
parent 1729  6c8e3c04c6ee 
child 2054  5f403d9bcaad 
permissions  rwrr 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

1 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

2 
# CDDL HEADER START 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

3 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
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:
8
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:
8
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:
8
diff
changeset

7 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
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:
8
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:
8
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:
8
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:
8
diff
changeset

12 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
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:
8
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:
8
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:
8
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:
8
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:
8
diff
changeset

18 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

19 
# CDDL HEADER END 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

20 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

21 

21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

22 
# 
1729
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

23 
# Copyright (c) 2010, 2014, 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:
8
diff
changeset

24 
# 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

25 

21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

26 
# man pages 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

27 
<transform dir file link hardlink path=usr.*/man(/.+){0,1}$ > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

28 
default facet.doc.man all> 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

29 

21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

30 
# texinfo docs 
1729
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

31 

6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

32 
# tag texinfo directory links 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

33 
<transform link path=.*/info/dir$ > default facet.doc.info all> 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

34 
# tag files directly under .../share/info/ 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

35 
<transform file link hardlink path=.*/share/info/[^/]+$ > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

36 
default facet.doc.info all> 
1729
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

37 
# tag files in .../info/ that look like *.info[#][.gz] 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

38 
<transform file link hardlink path=.*/info/[^/]+\.info(\d+){0,1}(\.gz){0,1}$ > \ 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

39 
default facet.doc.info all> 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

40 
# if there are tagged files, we want to restart the texinfoupdate service so 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

41 
# that the directories get updated. 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

42 
<transform file facet.doc.info=all > \ 
241
28e3e664e431
7017805 texinfo should move to userland (fix actuator)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
221
diff
changeset

43 
add restart_fmri svc:/application/texinfoupdate:default> 
1729
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

44 
# there shouldn't be any texinfo directory files in /usr. 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

45 
<transform file path=usr/.*/info/dir$ > \ 
6c8e3c04c6ee
18314045 the docinfo transform is too broad  too many facet.doc.info
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1066
diff
changeset

46 
exit 1 "Error: packaged texinfo directory file (%<action.path>)" > 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

47 

21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

48 
# html docs 
138
089c2065503f
7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
15
diff
changeset

49 
<transform dir file link hardlink path=usr/.*/doc/.*(html?css).* > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

50 
default facet.doc.html all> 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

51 
<transform dir file link hardlink path=usr/lib/help/.*\.html$ > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

52 
default facet.doc.html all> 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

53 

21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

54 
# pdf docs 
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

55 
<transform dir file link hardlink path=usr/.*/doc/.*\.pdf$ > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

56 
default facet.doc.pdf all> 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

57 

976
3e60a8a2dff1
7161369 Update clisp to version 2.49
Rich Burridge <rich.burridge@oracle.com>
parents:
954
diff
changeset

58 
# ps docs 
3e60a8a2dff1
7161369 Update clisp to version 2.49
Rich Burridge <rich.burridge@oracle.com>
parents:
954
diff
changeset

59 
<transform dir file link hardlink path=usr/.*/doc/.*\.ps$ > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

60 
default facet.doc.ps all> 
976
3e60a8a2dff1
7161369 Update clisp to version 2.49
Rich Burridge <rich.burridge@oracle.com>
parents:
954
diff
changeset

61 

453
df0646878054
7074362 userland doc transforms need some love
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
241
diff
changeset

62 
# general documentation 
15
21f7a7ab78ba
add more rules to transforms, fix up some existings rules
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
8
diff
changeset

63 
<transform dir file link hardlink path=usr/.*/doc(/.+){0,1}$ > \ 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

64 
default facet.doc all> 
453
df0646878054
7074362 userland doc transforms need some love
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
241
diff
changeset

65 

df0646878054
7074362 userland doc transforms need some love
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
241
diff
changeset

66 
# drop facet.doc if we have a type specific facet. 
1066
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

67 
<transform dir file link hardlink facet.doc.html=all > delete facet.doc all> 
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

68 
<transform dir file link hardlink facet.doc.info=all > delete facet.doc all> 
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

69 
<transform dir file link hardlink facet.doc.pdf=all > delete facet.doc all> 
23c7e5d8bebf
15808775 SUNBT7189956 facet.compat.gnulinks takes precedence over facet.doc.man resulting
Petr Sumbera <petr.sumbera@oracle.com>
parents:
976
diff
changeset

70 
<transform dir file link hardlink facet.doc.man=all > delete facet.doc all> 