[Gridflow-cvs] [svn] commit: r4644 - /trunk/doc/find_missing.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Nov 1 18:26:38 EST 2009


Author: matju
Date: Sun Nov  1 18:26:38 2009
New Revision: 4644

Log:
also look in index.pd

Modified:
    trunk/doc/find_missing.rb

Modified: trunk/doc/find_missing.rb
==============================================================================
--- trunk/doc/find_missing.rb (original)
+++ trunk/doc/find_missing.rb Sun Nov  1 18:26:38 2009
@@ -14,7 +14,27 @@
 c.concat Dir["flow_classes/cv/*-help.pd"].map{|x| x.gsub(/^flow_classes\//,"").gsub(/-help\.pd$/,"") }
 ab=a+b
 
- puts (ab-c).sort.join" "
- puts (ab-c).size
+d=[]
+File.open("index.pd") {|f|
+  f.each {|line|
+    m=/obj \d+ \d+ ([^ ;]+)/.match(line)
+    d<<m[1] if m
+  }
+}
 
-#puts (c-ab).sort.join" "
+puts "missing from help files: "
+puts (ab-c).sort.join" "
+puts (ab-c).size
+puts ""
+
+puts "orphan help files:"
+puts (c-ab).sort.join" "
+puts ""
+
+puts "missing from index:"
+puts (ab-d).sort.join" "
+puts (ab-d).size
+puts ""
+
+puts "orphan index entries: "
+puts (d-ab).sort.join" "



More information about the Gridflow-cvs mailing list