From 6904989c318cdcee885d7e65fc0a5bbcb38e1130 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 15 Jan 2002 17:55:54 +0000 Subject: [PATCH] Some protection against spaces in directory names. (Tru64 still has some makedepend problems in such cases but that looks like Tru64's problem.) p4raw-id: //depot/perl@14287 --- Configure | 34 +++++++++++++++++----------------- Makefile.SH | 5 +++++ 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/Configure b/Configure index a57fad1..80b79cc 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sat Jan 12 23:16:55 EET 2002 [metaconfig 3.0 PL70] +# Generated on Tue Jan 15 20:37:25 EET 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <&4 - awk '$1 !~ /PACK[A-Z]+/ {print $1}' $rsrc/MANIFEST | split -50 + awk '$1 !~ /PACK[A-Z]+/ {print $1}' "$rsrc/MANIFEST" | split -50 rm -f missing tmppwd=`pwd` for filelist in x??; do - (cd $rsrc; ls `cat $tmppwd/$filelist` >/dev/null 2>>$tmppwd/missing) + (cd "$rsrc"; ls `cat "$tmppwd/$filelist"` >/dev/null 2>>"$tmppwd/missing") done if test -s missing; then cat missing >&4 @@ -7115,7 +7115,7 @@ y*) usedl="$define" esac echo "The following dynamic loading files are available:" : Can not go over to $dldir because getfile has path hard-coded in. - tdir=`pwd`; cd $rsrc; $ls -C $dldir/dl*.xs; cd $tdir + tdir=`pwd`; cd "$rsrc"; $ls -C $dldir/dl*.xs; cd "$tdir" rp="Source file to use for dynamic loading" fn="fne" gfpth="$src" @@ -16535,7 +16535,7 @@ find_extensions=' else if $test -d $xxx -a $# -lt 10; then set $1$xxx/ $*; - cd $xxx; + cd "$xxx"; eval $find_extensions; cd ..; shift; @@ -16545,7 +16545,7 @@ find_extensions=' esac; done' tdir=`pwd` -cd $rsrc/ext +cd "$rsrc/ext" set X shift eval $find_extensions @@ -16559,7 +16559,7 @@ nonxs_extensions="$*" set X $known_extensions shift known_extensions="$*" -cd $tdir +cd "$tdir" : Now see which are supported on this system. avail_ext='' @@ -17808,7 +17808,7 @@ echo " " exec 1>&4 pwd=`pwd` . ./UU/extract -cd $pwd +cd "$pwd" if $contains '^depend:' [Mm]akefile >/dev/null 2>&1; then dflt=y diff --git a/Makefile.SH b/Makefile.SH index 103f503..f86b17b 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -100,6 +100,11 @@ true) ;; esac +case "`pwd`" in +# Protect any spaces +*" "*) ldlibpth=`echo $ldlibpth|sed 's/ /\\\\ /g'` ;; +esac + : Prepare dependency lists for Makefile. dynamic_list=' ' for f in $dynamic_ext; do -- 2.7.4