bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automake 1.6.2 and ln -s


From: Andreas Buening
Subject: Re: automake 1.6.2 and ln -s
Date: Fri, 21 Jun 2002 23:12:47 +0200

Alexandre Duret-Lutz wrote:
> 
> >>> "Andreas" == Andreas Buening <address@hidden> writes:
> 
>  Andreas> Hello!
> 
> Hi!
> 
>  Andreas> automake uses ln -s for the installation. I've changed
>  Andreas> configure.in and Makefile.am so that now $(LN_S) is used
>  Andreas> (which means cp -p if ln -s fails)
> 
> Thanks for the report.  Unfortunately, Automake uses `ln', not
> `ln -s'.  Using `ln -s' here is not a very good idea: the day
> automake is erased by a new version (like the automake 1.7
> binary), automake-1.6 will be a symlink to this new version...
> Besides there are other drawbacks with symlinks using absolute
> paths.

Ah, I see.

> I think only `ln' or `cp -p' are ok.  I'll try to do that next
> week, unless someone else (you?) do it meanwhile.

Maybe something like that:

------------------------------
--- old/automake-1.6.2/Makefile.am      Mon Jun 10 09:43:28 2002
+++ gnu/automake-1.6.2/Makefile.am      Fri Jun 21 22:53:34 2002
@@ -46,7 +46,10 @@
          fv="$$f-$(APIVERSION)"; \
          rm -f $(DESTDIR)$(bindir)/$$fv; \
          echo " ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
-         ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
+         ln $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv 2>/dev/null; \
+         || { echo "cannot create links, using cp -p instead:"; \
+           echo " cp -p $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
+           cp -p $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; } \
        done

 uninstall-hook:
------------------------------

bye,
Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]