Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2016 10:19:30 -0800
From:      Devin Teske <dteske@FreeBSD.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>, src-committers@freebsd.org,  svn-src-user@freebsd.org
Cc:        dteske@FreeBSD.org
Subject:   Re: svn commit: r293777 - user/cperciva/freebsd-update-build/scripts
Message-ID:  <1452622770.11054.1.camel@FrauBSD.org>
In-Reply-To: <20160112180805.GP1906@FreeBSD.org>
References:  <201601121806.u0CI67gI009531@repo.freebsd.org> <20160112180805.GP1906@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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