All,

This originated from one of my requirement where svn* binaries and tools need to be installed in same location. I'm not sure this one qualifies as a valid patch, because for this to happen someone should tweaks Makefile.in
and points $bindir and $toolsdir to same location.

[[[
Don't break 'make install-tools' if TOOLSDIR is same as BINDIR.

* Makefile.in
  (INSTALL_EXTRA_TOOLS): Check that target and link_name are not the
   same before creating symlink to svnmucc in BINDIR.

Patch by: Alexander Thomas <alexander{_AT_}collab.net>
]]]


Thanks
-Alexander Thomas (AT)
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 1444663)
+++ Makefile.in	(working copy)
@@ -926,4 +926,6 @@
   $(MKDIR) $(DESTDIR)$(bindir); \
   test -n "$$SVN_SVNMUCC_IS_SVNSYITF" && \
   ln -sf svnmucc$(EXEEXT) $(DESTDIR)$(bindir)/svnsyitf$(EXEEXT); \
-  ln -sf $(DESTDIR)$(bindir)/svnmucc$(EXEEXT) $(DESTDIR)$(toolsdir)/svnmucc$(EXEEXT)
+  if test "$(DESTDIR)$(bindir)" != "$(DESTDIR)$(toolsdir)"; then \
+    ln -sf $(DESTDIR)$(bindir)/svnmucc$(EXEEXT) $(DESTDIR)$(toolsdir)/svnmucc$(EXEEXT); \
+  fi

Reply via email to