7068147 removing CDDL from copies of source/text files delivered to the binary product s11-fcs
authorjenda
Fri, 29 Jul 2011 14:07:04 +0200
changeset 142 da26b9f833de
parent 141 23b21efdeb7e
child 143 73bd527fefb4
7068147 removing CDDL from copies of source/text files delivered to the binary product
Makefile
--- a/Makefile	Thu Jun 16 15:52:21 2011 +0200
+++ b/Makefile	Fri Jul 29 14:07:04 2011 +0200
@@ -374,7 +374,10 @@
 
 build/.installed_extensions: $(FILEROOT)/usr/lib/localedef/src/extensions/.dir
 	$(M)INSTALL extensions
-	$(Q)cp misc/*.x $(FILEROOT)/usr/lib/localedef/src/extensions/
+	$(Q)for fn in misc/*.x; do \
+			$(PERL) -ne 'print unless /CDDL HEADER START/ .. /CDDL HEADER END/' $$fn > $(FILEROOT)/usr/lib/localedef/src/extensions/`basename $$fn`; \
+		done
+
 
 build/SUNWlocaledefsrc/.installed: $(LOCALES:%=build/%/.installed_locale_src) $(CHARMAPS:%=build/.installed_charmap_%) build/.installed_extensions