[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: licenses of tests
From: |
Eric Blake |
Subject: |
Re: licenses of tests |
Date: |
Wed, 30 Dec 2009 05:38:14 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Jim Meyering on 12/30/2009 1:44 AM:
>> find modules -name '*-tests' | xargs grep -l License \
>> | xargs sed -i '/^$/N; /License:/,$ d'
>
> Those changes look fine. Thanks.
>
> In case there's a next time, you'd want to add a "^"
> before the "License:" in that sed command:
That wouldn't have worked. The previous N command, to also delete the
blank line prior to the License line, means that License is no longer at
the beginning of the pattern stream. But this would do it:
sed -i '/^$/N; /\n*License:$/,$ d'
> Otherwise, there is a small risk of malfunction.
> Currently we're safe: there *are* unrelated occurrences of "License",
> but none with a following colon.
Yep, I worried about that too, which is why I manually inspected the
results of the sed call before committing ;)
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAks7SbYACgkQ84KuGfSFAYCDIwCgs4H9woXh3cLuLyJEomy5v3LA
7u0AnjN5AGqUmom0SSAaTTGhUvKCin7L
=bAB1
-----END PGP SIGNATURE-----