At 7:54 Uhr -0400 18.05.2002, David R. Morrison wrote:
>I'm trying to debug a problem for a user, and I believe I have isolted it
>to the fragment of a Makefile reproduced below.  Is it possible that
>this behaves differently under zsh and bash?  (I don't know my shell
>scripting very well...) I wondered if the test -f could be the culprit.
>
>   THanks,
>   Dave
>
>install-aclocalDATA: $(aclocal_DATA)
>         @$(NORMAL_INSTALL)
>         $(mkinstalldirs) $(DESTDIR)$(aclocaldir)
>         @list='$(aclocal_DATA)'; for p in $$list; do \
>           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
>           f="`echo $$p | sed -e 's|^.*/||'`"; \
>           echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(aclocaldir)/$$f"; \
>           $(INSTALL_DATA) $$d$$p $(DESTDIR)$(aclocaldir)/$$f; \
>         done

The test -f should be fine. The problem might be the lack of quotes 
in the second last line (before the "done") if and of the path 
components contains spaces; though there could be various other 
problems, too.

You might want to  insert "echo %$f" etc. at the beginning to 
determine the values of the various variables involved.


Cheers,

Max
-- 
-----------------------------------------------
Max Horn
Software Developer

email: <mailto:[EMAIL PROTECTED]>
phone: (+49) 6151-494890

_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to