Show
Ignore:
Timestamp:
01/22/08 19:45:44 (10 months ago)
Author:
drry
Message:

platform/tdiary/Rakefile:

  • 他の既定値に合わせて desc の先頭を大文字にしました。
  • test_files から pattern、ruby_opts から libs へそれぞれ変更しました。
  • ほか
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/Rakefile

    r5287 r5288  
    1212package.freeze 
    1313 
    14 desc 'update source and packaging' 
     14desc 'Update source and packaging' 
    1515task :default => [:update, :package, :clean] 
    1616 
     
    2727desc 'Run all tests' 
    2828task :test do 
    29         require 'rake/testtask' 
    30         Rake::TestTask.new do |t| 
    31                 t.test_files = FileList[File.join('test', '**', '*_test.rb')] 
    32                 t.ruby_opts << [File.join(package[:root], 'plugin')].map{|path| "-I#{path}" }.join(' ') 
    33         end 
     29  require 'rake/testtask' 
     30  Rake::TestTask.new do |t| 
     31    t.libs << File.join(package[:root], 'plugin') 
     32    t.pattern = File.join 'test', '**', '*_test.rb' 
     33  end 
    3434end 
    3535 
     
    4646end 
    4747 
    48 desc 'convert source encoding from UTF-8 to EUC-JP' 
     48desc 'Convert source encoding from UTF-8 to EUC-JP' 
    4949task :to_euc => pkg.package_dir_path 
    5050file pkg.package_dir_path do |t| 
     
    6464      # use iconv instead of nkf in the following another way... 
    6565      sh <<-EOS 
    66         iconv --from-code=utf-8 --to-code=eucJP-ms --output #{filename}{.tmp,} && \ 
     66        iconv --from-code=utf-8 --to-code=euc-jp --output #{filename}{.tmp,} && \ 
    6767        touch -m -r #{filename}{,.tmp} && \ 
    6868        mv #{filename}{.tmp,} 
     
    7575end 
    7676 
    77 desc 'clean package files' 
     77desc 'Clean package files' 
    7878task :clean do 
    7979  rm_rf File.join(package[:pkgdir], "#{package[:name]}-#{package[:rev]}")