Permalink
Browse files

Added automatic updating for example_dot_autotest.rb

[git-p4: depot-paths = "//src/ZenTest/dev/": change = 3051]
  • Loading branch information...
zenspider committed Mar 21, 2007
1 parent 04b27c9 commit eded3a48c7018f4e6e4cc4e0172d56e798296f38
Showing with 16 additions and 1 deletion.
  1. +12 −0 Rakefile
  2. +4 −1 example_dot_autotest.rb
View
@@ -23,6 +23,18 @@ task :autotest do
ruby "-Ilib ./bin/autotest"
end
+task :update do
+ File.open "example_dot_autotest.rb", "w" do |f|
+ f.puts "# -*- ruby -*-"
+ f.puts
+ Dir.chdir "lib" do
+ Dir["autotest/*.rb"].sort.each do |s|
+ f.puts "# require '#{s[0..-4]}'"
+ end
+ end
+ end
+end
+
task :sort do
begin
sh 'for f in lib/*.rb; do echo $f; grep "^ *def " $f | grep -v sort=skip > x; sort x > y; echo $f; echo; diff x y; done'
View
@@ -1,13 +1,16 @@
# -*- ruby -*-
+# require 'autotest/autoupdate'
# require 'autotest/fixtures'
# require 'autotest/growl'
# require 'autotest/html_report'
# require 'autotest/kdenotify'
-# require 'autotest/libnotify'
# require 'autotest/menu'
+# require 'autotest/migrate'
+# require 'autotest/notify'
# require 'autotest/pretty'
# require 'autotest/redgreen'
+# require 'autotest/screen'
# require 'autotest/shame'
# require 'autotest/snarl'
# require 'autotest/timestamp'

0 comments on commit eded3a4

Please sign in to comment.