diff options
author | Andy Dougherty <doughera@lafayette.edu> | 2011-04-18 13:42:22 -0400 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-04-18 23:58:07 +0100 |
commit | bcab1245a0693be445ce018352f6fbe4abc26e88 (patch) | |
tree | 1fc7a30750a9dac195eea0565c6fda175170f737 /hints | |
parent | eabaae22ae7995ffb30ea21b6b8fcd1122302fc0 (diff) | |
download | perl-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')
-rw-r--r-- | hints/linux.sh | 6 |
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 |