summaryrefslogtreecommitdiff
path: root/hints/linux.sh
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2011-04-18 13:42:22 -0400
committerDavid Mitchell <davem@iabyn.com>2011-04-18 23:58:07 +0100
commitbcab1245a0693be445ce018352f6fbe4abc26e88 (patch)
tree1fc7a30750a9dac195eea0565c6fda175170f737 /hints/linux.sh
parenteabaae22ae7995ffb30ea21b6b8fcd1122302fc0 (diff)
downloadperl-bcab1245a0693be445ce018352f6fbe4abc26e88.tar.gz
collapse plibpth to one line and remove trailing /
The recent change to hints/linux.sh, 40f026236b9959b7ad3260fedc6c66cd30bb7abc set the plibpth variable. It was supposed to set all entries on a single line, but it didn't. Do it now, and also remove trailing /'s. (The collapsing is a more robust version of the previous commit, since reverted, that davem wrote independently).
Diffstat (limited to 'hints/linux.sh')
-rw-r--r--hints/linux.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index e03ab1edcf..970640c29b 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -164,8 +164,10 @@ esac
# plibpth to bypass this check.
case "$plibpth" in
'') plibpth=`gcc -print-search-dirs | grep libraries |
- cut -f2- -d= | tr ':' $trnl | grep -v 'gcc'`
- plibpth="$plibpth" # Collapse all entries on one line
+ cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
+ set X $plibpth # Collapse all entries on one line
+ shift
+ plibpth="$*"
;;
esac