<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>build/execscript.erb</filename>
    </added>
    <added>
      <filename>findlibs/ev/ftools.rb</filename>
    </added>
    <added>
      <filename>findlibs/main.rb</filename>
    </added>
    <added>
      <filename>findlibs/require2lib.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -146,6 +146,11 @@ Pallet.new('yikes', &quot;0.1&quot;) do |p|
 #	load_os(&quot;pallet_deb&quot;)
 end
 
+desc &quot;Create a bundle folder that has all dependencies included&quot;
+task :bundle do
+	ENV[&quot;REQUIRE2LIB_LIBDIR&quot;] = &quot;#{RootDir}/bundle&quot;
+	sh &quot;#{RootDir}/findlibs/main.rb #{RootDir}/lib/main.rb&quot;
+end
 
 #######################
 ## Gettext section
@@ -172,7 +177,10 @@ end
 
 desc &quot;Miscellaneous post-build tasks&quot;
 task :postbuild =&gt; [:expandify] do 
+	# FIXME: There's a Rake'y way to do this...
 	sh &quot;cp #{RootDir}/build/config.rb #{RootDir}/lib&quot; 
+	sh &quot;mkdir -p #{RootDir}/bin &amp;&amp; mv #{RootDir}/build/execscript #{RootDir}/bin/yikes&quot;
+	sh &quot;chmod +x #{RootDir}/bin/yikes&quot;
 end
 
 # Default Actions</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,21 +1,21 @@
 Done:
 	* Get one-shot &quot;just do it&quot; functionality 
 	* Use external ffmpeg
+	* Fix exec script
+	* FFmpeg/libfaac/whatever from source, statically compiled
 
 0.1:
 	* Linux package
-		- Fix exec script
 
 0.2:
 	* Investigate what other encoders (Handbrake et al.) are doing
 	* Daemon mode (frontend/backend separation)
-	* Qt4 GUI
+	* Rails daemon running video podcasts to local machine, advertise using Zeroconf
 	* OSX disk image
 	* Use Taglib to write tag information
-	* FFmpeg/libfaac/whatever from source, statically compiled
 
 0.5:
-	* Rails daemon running video podcasts to local machine, advertise using Zeroconf
+	* Qt4 GUI
 
 0.8:
 	* Works in Win32
@@ -23,3 +23,9 @@ Done:
 	* Windows installer
 
 Future:
+	* Simple queue of files to encode
+	* Monitoring FFmpeg output (without confusing rb!)
+	* Daemon control interface, script to kick off encoder run
+	* Dir change notifications on Linux, OSX
+	* Running daemon instant on-demand
+</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -55,11 +55,15 @@ def load_os(file)
 	end
 end
 
-def ruby_path
+def ruby_exec_path
 	return ENV[&quot;RUBY_BIN&quot;] if ENV[&quot;RUBY_BIN&quot;]
 
 	# FIXME: We need to include Ruby on Win32
 	return nil if os() == :win32
-	ret = `where ruby`
-	return ($? != 0 ? ret : nil)
+	ret = `which ruby`
+	return nil unless ret 	# FIXME: How can I use $? here?
+
+	# Filter out the newline at the end
+	m = /^(.*?)\s*$/.match(ret)
+	return m[1]
 end</diff>
      <filename>build/platform.rake</filename>
    </modified>
    <modified>
      <diff>@@ -74,7 +74,13 @@ module ExternalTranscoder
 	def transcode(input, output)
 		cmd = get_command(input, output)
 		puts &quot;Running #{cmd}&quot;
+		
+		# FIXME: Dumb hack code!
+		system(cmd)
+		return
+
 		IO.popen cmd do |i,o,e|
+			break
 			o.readlines.each do |line|
 				p line
 			end</diff>
      <filename>lib/engine.rb</filename>
    </modified>
    <modified>
      <diff>@@ -153,7 +153,7 @@ class Yikes &lt; Logger::Application
 	end
 end
 
-return unless __FILE__ == $0
-
-$the_app = Yikes.instance
-$the_app.run
+if __FILE__ == $0
+	$the_app = Yikes.instance
+	$the_app.run
+end</diff>
      <filename>lib/main.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@
 msgid &quot;&quot;
 msgstr &quot;&quot;
 &quot;Project-Id-Version: yikes 0.1\n&quot;
-&quot;POT-Creation-Date: 2008-03-01 11:04-0800\n&quot;
+&quot;POT-Creation-Date: 2008-03-03 12:35-0800\n&quot;
 &quot;PO-Revision-Date: 2008-01-20 20:45-0800\n&quot;
 &quot;Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt;\n&quot;
 &quot;Language-Team: LANGUAGE &lt;LL@li.org&gt;\n&quot;</diff>
      <filename>po/yikes.pot</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Usage: Yikes [options]
 
 Specific options:
-    -l, --library /path/to/videos    Directory to recursively scan for videos
+    -l, --dslibrary /path/to/videos  Directory to recursively scan for videos
     -t, --target dir                 Directory to put files in
     -g, --gui                        Run the GUI version of this application
 </diff>
      <filename>stories/steps/help_output</filename>
    </modified>
    <modified>
      <diff>@@ -35,6 +35,17 @@ class TestFFMpegTranscoder &lt; Test::Unit::TestCase
 		@fft = FFMpegTranscoder.new
 	end
 
+	def test_basic_transcode
+		input = File.join(TestDir, 'test_files', 'MH_egyptian_pan_L2R.avi')
+		output = File.join(TestDir, 'tmp.avi')
+		@fft.transcode(input, output)
+
+		# Let's see if the file exists
+		opn = Pathname.new(output)
+		assert opn.exist?
+		opn.delete
+	end
+
 	def test_get_command
 		input = &quot;foo&quot;
 		output = 'bar'</diff>
      <filename>test/test_engine.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8281de746ca25b2e3e17ed5fc2bd9e76fd8bdab8</id>
    </parent>
  </parents>
  <author>
    <name>Paul Betts</name>
    <email>paul@paulbetts.org</email>
  </author>
  <url>http://github.com/xpaulbettsx/yikes/commit/05160691e731bcf8fa0173d19a5d5a8bb86dc9ab</url>
  <id>05160691e731bcf8fa0173d19a5d5a8bb86dc9ab</id>
  <committed-date>2008-03-08T16:52:12-08:00</committed-date>
  <authored-date>2008-03-08T16:52:12-08:00</authored-date>
  <message>Add code from rubyscript2exe to build &quot;bundles&quot; - extract out all files
require'd by Yikes to a folder</message>
  <tree>9a766e856afed84c7aab0fb5b9dbbac9a7f2ddbf</tree>
  <committer>
    <name>Paul Betts</name>
    <email>paul@paulbetts.org</email>
  </committer>
</commit>
