From a57eae47f6e157fd09b5431dbd18d2f3aa815d88 Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Tue, 21 May 2002 00:58:40 +0000 Subject: [PATCH] Modified instrules so that the functionality of instlinks is that system links are not made to point to links, rather the real files. So links installed on a system are pointing to platform specific files rather than links that may be pointing to files of the wrong platform type. --- Make/instrules | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Make/instrules b/Make/instrules index a363500ff..8c0f0e269 100644 --- a/Make/instrules +++ b/Make/instrules @@ -117,7 +117,6 @@ instcleandev : fi\ done - __install : @[ -n "$(INSTSRC)" ] || echo "Internal error (INSTSRC definition)" @[ -n "$(INSTSRC)" ] && echo > /dev/null @@ -131,13 +130,23 @@ __install : do\ if [ -f $$f ] ; \ then \ - echo $(INSTALL) $$THISDIR/$$f $(INSTDEST)/$$f;\ - $(INSTALL) $$THISDIR/$$f $(INSTDEST)/$$f;\ + INSTPATH=$$THISDIR/$$f; \ + while [ -L $$INSTPATH ]; \ + do \ + ll=`ls -l $$INSTPATH | cut -f2 -d">"`;\ + echo cd `dirname $$ll`;\ + cd `dirname $$ll`;\ + INSTPATH="`pwd`"/"`basename $$ll`";\ + cd $$THISDIR;\ + done;\ + echo $(INSTALL) $$INSTPATH $(INSTDEST)/$$f;\ + $(INSTALL) $$INSTPATH $(INSTDEST)/$$f;\ fi\ done\ fi + __instclean : @[ -n "$(INSTSRC)" ] || echo "Internal error (INSTSRC definition)" @[ -n "$(INSTSRC)" ] && echo > /dev/null