<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,83 +4,43 @@
 # application with the waves script.  Accordingly, you may
 # wish to keep your tasks in .rb or .rake files in lib/tasks
 
+require 'rubygems'
+
+WAVES = &quot;#{File.dirname(__FILE__)}/..&quot; unless defined? WAVES
+
+waves = [
+  WAVES, ENV['WAVES'], './waves'
+].compact.map { |dir| File.join(dir, 'lib') }.find { |d|
+  File.exist? File.join( d, 'waves.rb' )
+}
+if waves
+  $: &lt;&lt; waves
+  waves = File.join( waves, 'waves' )
+else
+  waves = 'waves'
+end
+
+require waves
+require 'runtime/console'
+
 begin
-  require 'startup'
   Waves::Console.load(:mode =&gt; ENV['mode'])
 
   # load tasks from waves framework
-  %w( cluster generate gem ).each { |task| require &quot;tasks/#{task}.rb&quot; }
+  %w( generate gem ).each { |task| require &quot;tasks/#{task}.rb&quot; }
 
   # load tasks from this app's lib/tasks
   Dir[&quot;lib/tasks/*.{rb,rake}&quot;].each { |task| require task }
   
 rescue LoadError =&gt; e
   if e.message == 'no such file to load -- waves'
-    puts &quot;Can't find Waves source.  Install gem, freeze Waves, or define WAVES in startup.rb&quot;
+    puts &quot;Can't find Waves source.  Install gem, freeze Waves, or define WAVES at the top of the Rakefile&quot;
     puts
   else
     raise e
   end
 end
 
-namespace :dep do
-
-  desc &quot;check if all the dependencies specified in the configuration&quot;
-  task :check do
-
-    gems = Gem::SourceIndex.from_installed_gems.to_a.to_s
-    missing = Array.new
-
-    puts &quot;\nApplication-level dependencies:&quot;
-    puts &quot; ('*' means gem is installed and available)&quot;
-    
-    Waves.config.dependencies.each do |dep|
-      pattern = /=#{dep}\s/
-      print &quot;\t#{dep}:\t\t&quot;
-      print &quot;\t&quot; if dep.length &lt; 7  # keep our formatting pretty, please.
-      unless pattern.match(gems).nil?
-        print &quot;[*]\n&quot;
-      else
-        print &quot;[ ]\n&quot;
-      end
-    end    
-  end
-  
-  desc &quot;install any missing dependencies specified in the configuration&quot;
-  task :install do
-
-    gems = Gem::SourceIndex.from_installed_gems.to_a.to_s
-    missing = Array.new
-
-    Waves.config.dependencies.each do |dep|
-      pattern = /=#{dep}\s/
-      missing &lt;&lt; dep if pattern.match(gems).nil?
-    end
-
-    missing.each do |m|
-      dep,ver = m.is_a?(String) ? [m,''] : m
-      puts &quot;Installing dependency: #{dep}&quot;
-      puts ver
-      begin
-        require 'rubygems/dependency_installer'
-        if Gem::RubyGemsVersion =~ /^1\.0\./
-          Gem::DependencyInstaller.new(dep).install
-        else
-          # as of 1.1.0
-          Gem::DependencyInstaller.new.install(dep)
-        end
-      rescue LoadError # &lt; rubygems 1.0.1
-        require 'rubygems/remote_installer'
-        Gem::RemoteInstaller.new.install(dep)
-      end
-    end
-
-    puts &quot;Environment complete. Nothing to install.&quot; if missing.empty?
-
-  end
-
-end
-
 namespace :waves do
   
   desc &quot;freeze src=&lt;wherever&gt; to ./waves&quot;</diff>
      <filename>templates/classic/Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a8dc2f6d1f24573bcf7ba608335d6dcca41fdf4c</id>
    </parent>
  </parents>
  <author>
    <name>Matthew King</name>
    <email>automatthew@gmail.com</email>
  </author>
  <url>http://github.com/dyoder/waves/commit/2f21f095c0bd510a68345b3661508400196630f2</url>
  <id>2f21f095c0bd510a68345b3661508400196630f2</id>
  <committed-date>2008-11-07T06:47:10-08:00</committed-date>
  <authored-date>2008-11-07T06:47:10-08:00</authored-date>
  <message>broken Rakefile; needs to do the WAVES finding dance</message>
  <tree>0e14c662e17150576ba3ca6523d302a1d7acb5d4</tree>
  <committer>
    <name>Matthew King</name>
    <email>automatthew@gmail.com</email>
  </committer>
</commit>
