Show
Ignore:
Timestamp:
03/11/08 19:53:43 (9 months ago)
Author:
hsbt
Message:

platform/tdiary/Rakefile: remove to_euc task in default.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/Rakefile

    r5706 r7800  
    6060 
    6161desc 'Convert source encoding from UTF-8 to EUC-JP' 
    62 task :to_euc => pkg.package_dir_path 
    63 file pkg.package_dir_path do |t| 
     62task :to_euc do |t| 
    6463        require 'shell' 
    65         t.prerequisites.each do |f| 
     64        pkg.package_files.each do |f| 
    6665                filename = File.join pkg.package_dir_path, f 
    6766                # exclude directories and binary files 
    6867                next if File.ftype(filename) != 'file' || 
    69                         package[:binary_ext].include?(File.extname(filename)) 
    70  
     68                        package[:binary_ext].include?(File.extname(filename)) 
     69                 
    7170                case 
    7271                when Shell.new.find_system_command('nkf') 
     
    8180                                mv #{filename}{.tmp,} 
    8281                        EOS 
    83                 #else 
    84                 # ... or require 'nkf', 'iconv' 
     82                        #else 
     83                        # ... or require 'nkf', 'iconv' 
    8584                end 
     85                touch filename 
    8686        end 
    87         touch t.name 
    8887end 
    8988