ports/102914: [patch] allow comments in ports.conf
Hans Lambermont
hans at lambermont.dyndns.org
Tue Sep 5 19:10:28 UTC 2006
>Number: 102914
>Category: ports
>Synopsis: [patch] allow comments in ports.conf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 05 19:10:23 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Hans Lambermont
>Release: FreeBSD 5.4-RELEASE-p6 i386
>Organization:
n/a
>Environment:
System: FreeBSD leia 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #4: Sun Jul 31 19:09:44 CEST 2005 root at leia:/usr/obj/usr/src/sys/LEIA i386
>Description:
Proposal to allow comments in ports.conf
>How-To-Repeat:
n/a
>Fix:
Patch relative to ports/sysutils/portconf/files/portconf.sh.in,v 1.1 2006/06/08 07:30:10 ale
--- portconf.sh.in.1.1 Tue Sep 5 20:54:25 2006
+++ portconf.sh.in Tue Sep 5 20:53:54 2006
@@ -37,6 +37,10 @@
if [ -z "${_line}" ]; then
continue
fi
+ echo ${_line} | grep -q ^#
+ if [ $? -eq 0 ]; then
+ continue
+ fi
_port=${_line%%:*}
if [ "${_pwd%%${_port}}" != "${_pwd}" ]; then
echo ${_line#*:} | sed -E 's/([A-Z0-9_]+)(=([^|]+))?/\1=\3/g;s/ *\| */|/g;s/ /%/g'
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list