Changeset 7823
- Timestamp:
- 03/12/08 04:55:46 (9 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/Rakefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/Rakefile
r7800 r7823 36 36 end 37 37 end 38 38 39 39 namespace :rcov do 40 40 task :clean do … … 66 66 # exclude directories and binary files 67 67 next if File.ftype(filename) != 'file' || 68 package[:binary_ext].include?(File.extname(filename))69 68 package[:binary_ext].include?(File.extname(filename)) 69 70 70 case 71 71 when Shell.new.find_system_command('nkf') 72 sh "nkf -O --euc #{filename} #{filename}.tmp && " << 73 "touch -m -r #{filename} #{filename}.tmp && " << 74 "mv #{filename}.tmp #{filename}" 72 sh <<-EOS.gsub(/^\s+/, '') 73 nkf -O --euc #{filename}{,.tmp} && \\ 74 touch -m --reference=#{filename} #{filename}.tmp && \\ 75 mv #{filename}{.tmp,} 76 EOS 75 77 when Shell.new.find_system_command('iconv') 76 # use iconv instead of nkf in the following another way...77 78 sh <<-EOS.gsub(/^\s+/, '') 78 79 iconv --from-code=utf-8 --to-code=euc-jp --output #{filename}{.tmp,} && \\ 79 touch -m - r #{filename}{,.tmp}&& \\80 touch -m --reference=#{filename} #{filename}.tmp && \\ 80 81 mv #{filename}{.tmp,} 81 82 EOS 82 #else83 # ... or require 'nkf', 'iconv'84 83 end 85 touch filename86 84 end 87 85 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)