Fix some sed issues that seem to appear on Mac.

This commit is contained in:
Themaister 2011-02-04 15:31:05 +01:00
parent 57eebebcdd
commit c2896db558

View File

@ -95,7 +95,7 @@ parse_input()
case "$1" in
--prefix=*)
prefix="`echo $1 | sed -e 's|^--prefix=\(\S\S*\)$|\1|' -e 's|\(\S\S*\)/$|\1|'`"
prefix="`echo $1 | sed -e 's|^--prefix=||' -e 's|^\(.*\)/$|\1|'`"
if [ "$prefix" != "$1" ]; then
PREFIX="$prefix"