From 2520dd6483049adb07cef66ed504f94685cc457c Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Fri, 21 Nov 2014 09:17:35 -0500 Subject: [PATCH] adjust devscripts for DSL 1.0 * expect new-style header in irregular_cask_whitespace --- developer/bin/irregular_cask_whitespace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer/bin/irregular_cask_whitespace b/developer/bin/irregular_cask_whitespace index 8fb060001893..a892643ccef9 100755 --- a/developer/bin/irregular_cask_whitespace +++ b/developer/bin/irregular_cask_whitespace @@ -78,7 +78,7 @@ _irregular_cask_whitespace () { perl -C32 -0777 -ne 'print " $ARGV\n" if m{[\x00-\x08\x0B-\x0C\x0E\x1F]}s' -- ./*.rb printf "\n# First indent not 2\n" - perl -C32 -0777 -ne 's{\A.*?<\s*Cask[ \t\r]*\n+}{}s; print " $ARGV\n" unless m{\A \S}s' -- ./*.rb + perl -C32 -0777 -ne 's{\A(.*?\n)?cask\s+:v\d\S*\s+=>[^\n]+\n+}{}s; print " $ARGV\n" unless m{\A \S}s' -- ./*.rb printf "\n# Indents not multiple of 2\n" perl -C32 -0777 -ne 'print " $ARGV\n" if m{\n(?: ){0,} [a-z]}s' -- ./*.rb