[buildd-tools-devel] Bug#569671: Bug#569671: copyfiles: add support for comments

Sascha Silbe sascha-debian-bugs-schroot-2010-02-13 at silbe.org
Wed Feb 17 22:44:28 UTC 2010


On Wed, Feb 17, 2010 at 10:33:00PM +0000, Roger Leigh wrote:

>> The attached patch adds support for whole-line comments (starting 
>> with "#") and empty lines to setup.d/20copyfiles.
>>   	    while read file; do
>> +		if echo "$file" | egrep -q '^(#|$)' ; then
>> +		    continue
>> +		fi
> Thanks, this looks very useful, and will also be good in the
> nssdatabases script.  One question: what's the '|$' for in
> the regex?  Isn't '^#' sufficient?
It's for ignoring empty lines.

CU Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100217/9bf6cfa5/attachment.pgp>


More information about the Buildd-tools-devel mailing list