Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Sep 2006 20:59:28 +0200 (CEST)
From:      Hans Lambermont <hans@lambermont.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Hans Lambermont <hans@lambermont.dyndns.org>
Subject:   ports/102914: [patch] allow comments in ports.conf
Message-ID:  <20060905185928.9514522DDED@lambermont.dyndns.org>
Resent-Message-ID: <200609051910.k85JAO18090060@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060905185928.9514522DDED>