From: Nicholas Clark Date: Mon, 13 Mar 2006 18:59:27 +0000 (+0000) Subject: Split break out the installprefix code from setprefixvar, which allows X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a092d240526911dd8284a018cd9aceb03393940a;p=p5sagit%2Fp5-mst-13.2.git Split break out the installprefix code from setprefixvar, which allows the remaining 8 places to call the common prefix conversion code. p4raw-id: //depot/perl@27489 --- diff --git a/Configure b/Configure index 32ef64a..6326ffe 100755 --- a/Configure +++ b/Configure @@ -5969,14 +5969,11 @@ esac installstyle=$dflt -: Set variables such as privlib and privlibexp from the output of ./getfile -: performing the prefixexp/installprefixexp correction if necessary. -cat <setprefixvar +: Perform the prefixexp/installprefixexp correction if necessary +cat <installprefix $startsh EOS -cat <<'EOSC' >>setprefixvar -eval "${prefixvar}=\"\$ans\"" -eval "${prefixvar}exp=\"\$ansexp\"" +cat <<'EOSC' >>installprefix : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then eval "install${prefixvar}=\`echo \$${prefixvar}exp | sed \"s#^\$prefixexp#\$installprefixexp#\"\`" @@ -5985,6 +5982,17 @@ else fi EOSC +: Set variables such as privlib and privlibexp from the output of ./getfile +: performing the prefixexp/installprefixexp correction if necessary. +cat <setprefixvar +$startsh +EOS +cat <<'EOSC' >>setprefixvar +eval "${prefixvar}=\"\$ans\"" +eval "${prefixvar}exp=\"\$ansexp\"" +. ./installprefix +EOSC + : determine where private library files go : Usual default is /usr/local/lib/perl5/$version. : Also allow things like /opt/perl/lib/$version, since @@ -6612,12 +6620,8 @@ case "$vendorprefix" in ;; esac vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"` -: Change installation prefix, if necessary. -if $test X"$prefix" != X"$installprefix"; then - installvendorlib=`echo $vendorlibexp | $sed "s#^$prefixexp#$installprefixexp#"` -else - installvendorlib="$vendorlibexp" -fi +prefixvar=vendorlib +. ./installprefix case "$vendorprefix" in '') d_vendorarch="$undef" @@ -6642,12 +6646,8 @@ case "$vendorprefix" in vendorarchexp="$ansexp" ;; esac -: Change installation prefix, if necessary. -if $test X"$prefix" != X"$installprefix"; then - installvendorarch=`echo $vendorarchexp | sed "s#^$prefixexp#$installprefixexp#"` -else - installvendorarch="$vendorarchexp" -fi +prefixvar=vendorarch +. ./installprefix : Final catch-all directories to search $cat <