Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
341N/A#
341N/A# CDDL HEADER START
1436N/A#
341N/A# The contents of this file are subject to the terms of the
341N/A# Common Development and Distribution License, Version 1.0 only
919N/A# (the "License"). You may not use this file except in compliance
919N/A# with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
341N/A#ident "%Z%%M% %I% %E% SMI"
341N/A#
341N/A# Copyright 1995,2001-2003 Sun Microsystems, Inc. All rights reserved.
341N/A# Use is subject to license terms.
493N/A#
341N/A# pkgdefs/SUNW0on/Makefile
341N/A
1370N/Ainclude ../Makefile.com
341N/A
911N/AROOTDIR=$(ROOT)/usr/lib/locale/C
1370N/AROOTMSGDIR=$(ROOTDIR)/LC_MESSAGES
1370N/AROOTTIMEDIR=$(ROOTDIR)/LC_TIME
1370N/A
911N/ASED= /usr/bin/sed
341N/ACP= /usr/bin/cp
341N/AOWNER= root
1402N/AGROUP= sys
1422N/AFILEMODE= 644
1265N/A
1370N/APO_LABEL=' The following lines are contents of '
1370N/A
1370N/A.KEEP_STATE:
1179N/A
1233N/Aall: $(FILES)
1265N/Ainstall: all pkg
1179N/A
1370N/Ainclude ../Makefile.targ
1370N/A
1370N/A# The _msg target gathers the output of the top-level _msg target into
1370N/A# text-domain-specific message files under the ROOTMSGDIR for packaging.
1179N/A# It also processes time-message files in subdirectories of the LC_TIME
1179N/A# directory and copies or creates other files needed by this package.
1179N/A#
1370N/A_msg:
1370N/A [ -d $(ROOTMSGDIR) ] || mkdir -p $(ROOTMSGDIR)
1370N/A [ -d $(ROOTTIMEDIR) ] || mkdir -p $(ROOTTIMEDIR)
1370N/A [ -d $(MSGROOT) ] || $(ECHO) "need to build _msg in $(SRC)"
1370N/A (cd $(MSGROOT); \
1265N/A for d in SUNW*;\
1370N/A do \
1370N/A x="`$(ECHO) $$d/*.po`"; \
1370N/A y="$$d/"'*.po'; \
1370N/A $(RM) $(ROOTMSGDIR)/$$d.po; \
1370N/A if test "$$x" != "$$y"; then \
1265N/A for f in $$d/*.po; \
1370N/A do \
1370N/A $(ECHO) '#'$(PO_LABEL)$$f >> $(ROOTMSGDIR)/$$d.po; \
1265N/A $(SED) -e '/^# msg/d' -e '/^domain/d' $$f >> \
1370N/A $(ROOTMSGDIR)/$$d.po; \
1370N/A done; \
1370N/A $(CHOWN) $(OWNER) $(ROOTMSGDIR)/$$d.po; \
1265N/A $(CHGRP) $(GROUP) $(ROOTMSGDIR)/$$d.po; \
1179N/A $(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/$$d.po; \
1370N/A fi; \
1370N/A x="`$(ECHO) $$d/*.msg`"; \
1370N/A y="$$d/"'*.msg'; \
1370N/A if test "$$x" != "$$y"; then \
1370N/A for f in $$d/*.msg; \
1370N/A do \
1370N/A x="`basename $$f`"; \
1370N/A $(RM) $(ROOTMSGDIR)/$$x; \
1370N/A $(CP) $$f $(ROOTMSGDIR); \
1370N/A $(CHOWN) $(OWNER) $(ROOTMSGDIR)/$$x; \
1370N/A $(CHGRP) $(GROUP) $(ROOTMSGDIR)/$$x; \
1370N/A $(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/$$x; \
1370N/A done; \
1370N/A fi; \
1370N/A done)
1370N/A (cd $(MSGROOT)/LC_TIME; \
1370N/A for d in SUNW*;\
1370N/A do \
1345N/A $(RM) $(ROOTTIMEDIR)/$$d.po; \
341N/A for f in $$d/*.po; \
341N/A do \
341N/A $(ECHO) '#'$(PO_LABEL)$$f >> $(ROOTTIMEDIR)/$$d.po; \
1339N/A $(SED) -e '/^# msg/d' -e '/^domain/d' $$f >> \
1339N/A $(ROOTTIMEDIR)/$$d.po; \
1345N/A done; \
1339N/A $(CHOWN) $(OWNER) $(ROOTTIMEDIR)/$$d.po; \
970N/A $(CHGRP) $(GROUP) $(ROOTTIMEDIR)/$$d.po; \
970N/A $(CHMOD) $(FILEMODE) $(ROOTTIMEDIR)/$$d.po; \
970N/A done)
970N/A -$(RM) $(ROOTMSGDIR)/magic
970N/A $(CP) $(SRC)/cmd/file/magic $(ROOTMSGDIR)
970N/A -$(CHOWN) $(OWNER) $(ROOTMSGDIR)/magic
970N/A -$(CHGRP) $(GROUP) $(ROOTMSGDIR)/magic
970N/A -$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/magic
970N/A -$(RM) $(ROOTMSGDIR)/priv_names
970N/A $(CP) $(ROOT)/etc/security/priv_names $(ROOTMSGDIR)
970N/A -$(CHOWN) $(OWNER) $(ROOTMSGDIR)/priv_names
970N/A -$(CHGRP) $(GROUP) $(ROOTMSGDIR)/priv_names
970N/A -$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/priv_names
1029N/A -$(RM) $(ROOTMSGDIR)/mailx.help
1029N/A $(CP) $(SRC)/cmd/mailx/misc/mailx.help $(ROOTMSGDIR)
970N/A -$(CHOWN) $(OWNER) $(ROOTMSGDIR)/mailx.help
341N/A -$(CHGRP) $(GROUP) $(ROOTMSGDIR)/mailx.help
341N/A -$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/mailx.help
493N/A -$(RM) $(ROOTMSGDIR)/more.help
969N/A $(CP) $(SRC)/cmd/more/more.help $(ROOTMSGDIR)
1402N/A -$(CHOWN) $(OWNER) $(ROOTMSGDIR)/more.help
1402N/A -$(CHGRP) $(GROUP) $(ROOTMSGDIR)/more.help
341N/A -$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/more.help
341N/A -$(RM) $(ROOTMSGDIR)/uxlibc.src
493N/A $(CP) uxlibc.src $(ROOTMSGDIR)
1064N/A -$(CHOWN) $(OWNER) $(ROOTMSGDIR)/uxlibc.src
1029N/A -$(CHGRP) $(GROUP) $(ROOTMSGDIR)/uxlibc.src
341N/A -$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/uxlibc.src
341N/A -$(RM) $(ROOTMSGDIR)/SUNW_OST_LINFO
341N/A ($(ECHO) "yes"; $(ECHO) "no" ) > $(ROOTMSGDIR)/SUNW_OST_LINFO
341N/A -$(CHOWN) $(OWNER) $(ROOTMSGDIR)/SUNW_OST_LINFO
493N/A -$(CHGRP) $(GROUP) $(ROOTMSGDIR)/SUNW_OST_LINFO
341N/A -$(CHMOD) $(FILEMODE) $(ROOTMSGDIR)/SUNW_OST_LINFO
1064N/A