View | Details | Raw Unified | Return to bug 115733
Collapse All | Expand All

(-)/usr/ports/ports-mgmt/portconf/files/portconf.sh.in (-5 / +6 lines)
Lines 1-4 Link Here
1
#! /bin/sh
1
#! /bin/sh -f
2
#
2
#
3
# Copyright (c) 2006 Florent Thoumie <flz@FreeBSD.org>,
3
# Copyright (c) 2006 Florent Thoumie <flz@FreeBSD.org>,
4
#                    Alex Dupre <ale@FreeBSD.org>
4
#                    Alex Dupre <ale@FreeBSD.org>
Lines 34-41 Link Here
34
fi
34
fi
35
_pwd=`pwd`
35
_pwd=`pwd`
36
sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do
36
sed '/^#/d;/^[[:space:]]*$/d' "${_conf}" | while read _line; do
37
    _port=${_line%%:*}
37
    for _port in ${_line%%:*}; do
38
    if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then
38
        if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then
39
	echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/ *\| */|/g;s/ /%/g'
39
            echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/ *\| */|/g;s/ /%/g'
40
    fi
40
        fi
41
    done
41
done
42
done

Return to bug 115733