svn commit: r293777 - user/cperciva/freebsd-update-build/scripts

Devin Teske dteske at FreeBSD.org
Tue Jan 12 18:19:31 UTC 2016


On Tue, 2016-01-12 at 10:08 -0800, Gleb Smirnoff wrote:
> On Tue, Jan 12, 2016 at 06:06:07PM +0000, Gleb Smirnoff wrote:
> T> Author: glebius
> T> Date: Tue Jan 12 18:06:07 2016
> T> New Revision: 293777
> T> URL: https://svnweb.freebsd.org/changeset/base/293777
> T> 
> T> Log:
> T>   Adjust script removing .orig files and empty files:
> T>   - Adopt the regexp to cleaned patches, that don't have
> T>     diff or subversion header.
> T>   - Switch from awk to sed, due to bugs in awk regexps.
> 
> If anyone interested, in our awk regexp "^diff" would match
> "    diff", any amount of whitespace. Since ntp has a lot
> variables named diff, running the script over ntp patches
> produce a lot of garbage.
> 

Gleb, I can't seem to reproduce what you're saying.

$ echo "   diff" | awk '/^diff/'
$ echo "   diff" | awk '!/^diff/'
   diff

-- 
Devin



More information about the svn-src-user mailing list