Changeset 7800 for platform/tdiary/Rakefile
- Timestamp:
- 03/11/08 19:53:43 (9 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/Rakefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/Rakefile
r5706 r7800 60 60 61 61 desc '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| 62 task :to_euc do |t| 64 63 require 'shell' 65 t.prerequisites.each do |f|64 pkg.package_files.each do |f| 66 65 filename = File.join pkg.package_dir_path, f 67 66 # exclude directories and binary files 68 67 next if File.ftype(filename) != 'file' || 69 package[:binary_ext].include?(File.extname(filename))70 68 package[:binary_ext].include?(File.extname(filename)) 69 71 70 case 72 71 when Shell.new.find_system_command('nkf') … … 81 80 mv #{filename}{.tmp,} 82 81 EOS 83 #else84 # ... or require 'nkf', 'iconv'82 #else 83 # ... or require 'nkf', 'iconv' 85 84 end 85 touch filename 86 86 end 87 touch t.name88 87 end 89 88
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)