Changeset 5127 for platform/tdiary/Rakefile
- Timestamp:
- 01/21/08 00:22:02 (10 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/Rakefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/Rakefile
r5126 r5127 4 4 package = { 5 5 :name => 'tdiary-contrib', 6 :include_dir => %w[doc filter lib misc p kg plugin spec test util].map{|d| "#{d}/**/*" },6 :include_dir => %w[doc filter lib misc plugin spec test util].map{|d| "#{d}/**/*" }, 7 7 :binary_ext => %w[.swf] 8 8 } … … 21 21 p.need_tar_gz = true 22 22 end 23 24 desc 'convert source encoding from UTF-8 to EUC-JP' 25 task :to_euc => pkg.package_dir_path 26 file pkg.package_dir_path do |t| 27 t.prerequisites.each do |f| 28 filename = "#{pkg.package_dir_path}/#{f}" 29 # exclude directories and binary files 30 if (File.ftype(filename) == "file" && 31 !package[:binary_ext].include?(File.extname(filename))) 32 sh "nkf -e #{filename} > #{filename}.tmp && mv #{filename}.tmp #{filename}" 33 end 34 end 35 sh "touch #{t.name}" 36 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)