4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyrights (c) 1996 by Sun Microsystems, Inc.
26 # Example pieces of NIS Makefile.
28 # ident "%Z%%M% %I% %E% SMI"
36 $(DOM)/printers.conf.time: $(DIR)/printers.conf
37 -@if [ -f $(DIR)/printers.conf ]; then \
38 (sed -e '/^#/d' -e s/#.*$$// -e 's/[ ][ ]*$$//' \
39 -e '/\\$$/s/\\$$/ /' $(DIR)/printers.conf $(CHKPIPE))\
40 |( awk '/ $$/ {printf "%s", $$0} !/ $$/ {print}' $(CHKPIPE))\
41 |( sed -e 's/[ ][ ]*/ /g' -e 's/:[ ]*:/:/' \
43 | awk -F: '{n=split($$1, nm, "|"); for (i=1; i<=n; i++) \
45 | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/printers.conf.byname ; \
46 touch $(DOM)/printers.conf.time; \
47 echo "updated printers.conf"; \
48 if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) printers.conf.byname; \
50 if [ ! $(NOPUSH) ]; then echo "pushed printers.conf"; fi ; \
52 echo "couldn't find $(DIR)/printers.conf"; \
58 printers.conf: $(DOM)/printers.conf.time