Return to BSD News archive
Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!pipex!uknet!comlab.ox.ac.uk!mikes
From: mikes@bioch.ox.ac.uk (Mike Smith)
Subject: amd and YP
Message-ID: <1994Jan21.091651.7150@nmra.bioch.ox.ac.uk>
Originator: mikes@nmra.ocms
Organization: Department of Biochemistry, University of Oxford
Date: Fri, 21 Jan 1994 09:16:51 GMT
Lines: 38
Hi peeps,
How does one set up amd with yellow pages? I have a file with lines in like this:
nmrpcd host!=${key};type:=nfs;rhost:=${key};rfs:=/home/${key} \
host==${key};type:=ufs;dev:=/dev/disk3
but they come out like this with ypcat -k
nmrpcd host!=${key};type:=nfs;rhost:=${key};rfs:=/home/${key} host==${
i.e. the returns get zapped. It seems that amd doesn't like this, so what am I
doing wrong? The entry in the Makefile looks like this:
amd.homes.time: $(DIR)/amd.homes
-@if [ -f $(DIR)/amd.homes ]; then \
sed -e "/^#/d" -e s/#.*$$// $(DIR)/amd.homes \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/amd.homes; \
touch amd.homes.time; \
echo "updated amd.homes"; \
if [ ! $(NOPUSH) ]; then \
$(YPPUSH) amd.homes; \
echo "pushed amd.homes"; \
else \
: ; \
fi \
else \
echo "couldn't find $(DIR)/amd.homes"; \
fi
(just copied from the auto.home that was already there).
Thanks
Mike