[buildd-tools-devel] Bug#569671: Bug#569671: copyfiles: add support for comments
Roger Leigh
rleigh at codelibre.net
Wed Feb 17 22:57:10 UTC 2010
On Wed, Feb 17, 2010 at 11:44:28PM +0100, Sascha Silbe wrote:
> 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.
Ah, OK. Committed into git as below. This will be in the next
point release.
Many thanks,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-setup-Allow-comments-and-newlines-in-copyfiles-and-n.patch
Type: text/x-diff
Size: 1372 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100217/fb65a59f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100217/fb65a59f/attachment.pgp>
More information about the Buildd-tools-devel
mailing list