diff -ruN --exclude=CVS /usr/ports/ports-mgmt/portconf.orig/files/portconf.sh.in /usr/ports/ports-mgmt/portconf/files/portconf.sh.in --- /usr/ports/ports-mgmt/portconf.orig/files/portconf.sh.in 2006-09-06 07:50:31.000000000 -0500 +++ /usr/ports/ports-mgmt/portconf/files/portconf.sh.in 2007-08-22 15:39:11.000000000 -0500 @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/sh -f # # Copyright (c) 2006 Florent Thoumie , # Alex Dupre @@ -34,8 +34,9 @@ fi _pwd=`pwd` sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do - _port=${_line%%:*} - if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then - echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/ *\| */|/g;s/ /%/g' - fi + for _port in ${_line%%:*}; do + if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then + echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/ *\| */|/g;s/ /%/g' + fi + done done