Skip to content

Commit

Permalink
Added sandbox to find_missing_includes.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfe committed May 18, 2012
1 parent afa6e6d commit 3b4fe69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/find_missing_includes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby -w
#!/usr/bin/ruby

# VexFlow - Copyright Mohit Muthanna Cheppudira 2012
#
Expand All @@ -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" ]

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3b4fe69

Please sign in to comment.