From 2a39871686ad9d658a8422edaf6f97723f35aca1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 17 Jan 2006 17:04:40 +0000 Subject: [PATCH] From Zbigniew Sroczynski, fix for handling of paths with spaces. --- Make/dolink.sh | 2 +- Make/instrules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Make/dolink.sh b/Make/dolink.sh index 5cb7db6b9..346f423d4 100644 --- a/Make/dolink.sh +++ b/Make/dolink.sh @@ -53,7 +53,7 @@ else #4) strip the absolute path prefix of SRCDIR leading to the current ## directory, so we are left with the relative path from the current ## directory to the link source directory. Prefix that with PFX. - LINK="$PFX"`echo $LINK_ECHO_OPTION $SRCDIR $ROOTDIR | awk '{ print substr($1,length($2)+2,512) }'`/`basename $LNDEST` + LINK=`echo $LINK_ECHO_OPTION $SRCDIR | sed -e "s,$ROOTDIR/,$PFX,"`/`basename $LNDEST` #5) Create the links by changing to the destination directory, ## removing any old versions of the link and creating a new one diff --git a/Make/instrules b/Make/instrules index 8e4c6730f..5e93115db 100644 --- a/Make/instrules +++ b/Make/instrules @@ -132,7 +132,7 @@ __install : if [ -f $$f ] ; \ then \ INSTPATH=$$THISDIR/$$f; \ - $(INSTALL) $$INSTPATH $(INSTDEST)/$$f;\ + $(INSTALL) "$$INSTPATH" "$(INSTDEST)/$$f";\ fi\ done\ fi