*** empty log message ***
authorgc <gc>
Sat, 5 Mar 2005 13:29:30 +0000 (13:29 +0000)
committergc <gc>
Sat, 5 Mar 2005 13:29:30 +0000 (13:29 +0000)
booh

diff --git a/booh b/booh
index bfaa7f496f37a7d47f2dbcc0c890e76602cda22c..b0d5d506e3e3b2b5fbfa2f17c2a5a252b53bd2ee 100755 (executable)
--- a/booh
+++ b/booh
@@ -157,13 +157,13 @@ def walk_source_dir
         videos = Dir["#{dir}/*.{mov,MOV,avi,AVI,mpg,MPG,mpeg,MPEG,wmv,WMV,asx,ASX}"]
         msg 2, "\t#{videos.length} videos"
         
         videos = Dir["#{dir}/*.{mov,MOV,avi,AVI,mpg,MPG,mpeg,MPEG,wmv,WMV,asx,ASX}"]
         msg 2, "\t#{videos.length} videos"
         
-        dest_dir = dir.sub(/^#{$source}/, $dest)
+        dest_dir = dir.sub(/^#{Regexp.quote($source)}/, $dest)
         system("mkdir -p #{dest_dir}")
         msg 2, "Outputting in #{dest_dir}..."
 
         final_images = []
         images.each { |img|
         system("mkdir -p #{dest_dir}")
         msg 2, "Outputting in #{dest_dir}..."
 
         final_images = []
         images.each { |img|
-            dest_img = img.sub(/^#{$source}/, $dest).
+            dest_img = img.sub(/^#{Regexp.quote($source)}/, $dest).
                            sub(/\.[^\.]+$/, '') + '-704.jpg'
             final_images << File.basename(dest_img)
             if !File.exists?(dest_img)
                            sub(/\.[^\.]+$/, '') + '-704.jpg'
             final_images << File.basename(dest_img)
             if !File.exists?(dest_img)