Add locale facet tagging to IPS makefile rules
authorNorm Jacobs <Norm.Jacobs@Sun.COM>
Fri, 11 Jun 2010 12:23:59 -0500
changeset 22 b89eb90ac9c5
parent 21 e651c453e960
child 23 e7ed56b7c498
Add locale facet tagging to IPS makefile rules
make-rules/ips.mk
transforms/locale
--- a/make-rules/ips.mk	Thu Jun 10 15:28:20 2010 -0500
+++ b/make-rules/ips.mk	Fri Jun 11 12:23:59 2010 -0500
@@ -44,6 +44,7 @@
 PKGMOGRIFY_TRANSFORMS +=	$(WS_TOP)/transforms/actuators
 PKGMOGRIFY_TRANSFORMS +=	$(WS_TOP)/transforms/devel
 PKGMOGRIFY_TRANSFORMS +=	$(WS_TOP)/transforms/docs
+PKGMOGRIFY_TRANSFORMS +=	$(WS_TOP)/transforms/locale
 
 MANIFEST =	manifest-$(MACH)
 
--- a/transforms/locale	Thu Jun 10 15:28:20 2010 -0500
+++ b/transforms/locale	Fri Jun 11 12:23:59 2010 -0500
@@ -27,6 +27,16 @@
 # general locale
 <transform dir file link hardlink path=.*/locale/.+ -> default facet.locale true>
 
+
+# The fix for
+#    Bug 16156
+#   pkgmogrify should allow backreferences in operation to match criteria
+# will allow something like
+#   <transform dir file link hardlink \
+#       path=.*/locale/(.+)(\..+){0,1}(/.+){0,1}$ -> \
+#       default facet.locale.%<\1> true>
+# to replace the rest of the transforms in this file
+
 # specific locale dirs 
 <transform dir file link hardlink path=.*/locale/af(/.+){0,1}$ -> \
     default facet.locale.af true>