Bug 134770

Summary: [Win] Remove use of 'grep' in build steps
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Tools / TestsAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch thorton: review+

Description Brent Fulgham 2014-07-09 10:10:29 PDT
To reduce dependency on Cygwin utilities, switch from using command line 'grep' to the equivalent Perl program:

perl -wnne "if (/XX%PROJECTNAME%XX/) { print } else { exit 1}" "%CONFIGURATIONBUILDDIR%\buildfailed"

.... is equivalent to:

grep XX%PROJECTNAME%XX "%CONFIGURATIONBUILDDIR%\buildfailed"
Comment 1 Radar WebKit Bug Importer 2014-07-09 10:11:13 PDT
<rdar://problem/17608783>
Comment 2 Brent Fulgham 2014-07-09 10:35:35 PDT
Created attachment 234642 [details]
Patch
Comment 3 Brent Fulgham 2014-07-09 10:42:44 PDT
Comment on attachment 234642 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=234642&action=review

> Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCorePreBuild.cmd:4
> +if exist "%CONFIGURATIONBUILDDIR%\buildfailed" perl -wnne "if (/XX%PROJECTNAME%XX/) { print } else { exit 1}" "%CONFIGURATIONBUILDDIR%\buildfailed"

I need to correct "1}" to be "1 }"
Comment 4 Brent Fulgham 2014-07-09 10:45:47 PDT
Created attachment 234644 [details]
Patch
Comment 5 Brent Fulgham 2014-07-09 10:52:04 PDT
Comment on attachment 234644 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=234644&action=review

> Source/WebCore/WebCore.vcxproj/WebCoreGenerated.make:14
> +	if exist "%ConfigurationBuildDir%\buildfailed" del "%ConfigurationBuildDir%\buildfailed"

Looks like line endings for this file are off.
Comment 6 Brent Fulgham 2014-07-09 10:53:13 PDT
Created attachment 234646 [details]
Patch
Comment 7 Tim Horton 2014-07-09 10:59:59 PDT
Comment on attachment 234646 [details]
Patch

rs=me
Comment 8 Brent Fulgham 2014-07-09 11:06:05 PDT
Committed r170922: <http://trac.webkit.org/changeset/170922>