From 3b4fe69deed68b994ad137fd93a4c30c3657263f Mon Sep 17 00:00:00 2001 From: Mohit Cheppudira Date: Fri, 18 May 2012 15:23:20 -0400 Subject: [PATCH] Added sandbox to find_missing_includes.rb. --- tools/find_missing_includes.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/find_missing_includes.rb b/tools/find_missing_includes.rb index d3ef532842..a7583cc475 100755 --- a/tools/find_missing_includes.rb +++ b/tools/find_missing_includes.rb @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby -w +#!/usr/bin/ruby # VexFlow - Copyright Mohit Muthanna Cheppudira 2012 # @@ -10,7 +10,8 @@ SRCDIR = "../src" SCONSTRUCT = "#{SRCDIR}/SConstruct" HTML_FILES = [ - "../tests/flow.html", "../docs/tutorial.html", + "../tests/flow.html", + "../docs/tutorial.html", "../docs/sandbox.html", "../tabdiv/playground.html", "../tabdiv/tutorial.html", "../tabdiv/vextab.html" ] @@ -38,7 +39,8 @@ HTML_FILES.each do |html| test_includes = File.readlines(html). grep(/^.*script\ssrc.*\.\.\/src.*\.js.*/). - map { |f| f.chomp.gsub(/^.*"(.+)".*$/, '\1').gsub(SRCDIR + "/", "") } + map { |f| f.chomp.gsub(/^.*"(.+)".*$/, '\1'). + gsub(SRCDIR + "/", "") } puts "\nFiles in #{SRCDIR} but not in #{html}:" pp files - test_includes