Re: automount and NIS issue

From: Binner (binner_at_talk21.com)
Date: 08/01/03


Date: 1 Aug 2003 02:57:32 -0700

First attempt at fixing the Makefile

it did look like this

auto_apps_cheney: $(AUTO_APPS) $(YPDIR)/Makefile
        @echo "Updating $@..."
        -@sed -e "/^#/d" -e 's/#.*$$//' $(AUTO_APPS) | $(DBLOAD) \
                -i $(AUTO_APPS) -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

now it looks like this

auto_apps_cheney: $(AUTO_APPS) $(YPDIR)/Makefile
        @echo "Updating $@..."
        -@sed -e "/^#/d" -e 's/#.*$$//' -e 's/ //g' $(AUTO_APPS) |
$(DBLOAD) \
                -i $(AUTO_APPS) -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

i have added

 -e 's/ //g'

This removes all the whitespaces. Unfortunatley this broke 4 line in
another map. The line that were broken has whitespaces separating the
server:/mountpoint from the options so I shall try replacing the
whitespces with tabs and see if that makes any difference