freebsd-ports/net-p2p/qbittorrent/files/patch-configure
2015-08-19 04:09:02 +00:00

11 lines
554 B
Text

--- configure 2015-08-02 13:18:04 UTC
+++ configure 2015-08-19 00:00:14 -0400
@@ -5809,7 +5809,7 @@
fi
# Convert " -" to "\n" if not between quotes and remove possible leading white spaces
- string=$(echo " $*" | $SED -e 's: -:\n:g' -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[:space:]*//')
+ string=$(echo " $*" | tr ' -' '\n' | $SED -e 's: -:\n:g' -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[:space:]*//')
SAVEIFS=$IFS
IFS=$(printf "\n\b")
for i in $string; do