Changeset 5288 for platform/tdiary/Rakefile
- Timestamp:
- 01/22/08 19:45:44 (10 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/Rakefile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/Rakefile
r5287 r5288 12 12 package.freeze 13 13 14 desc ' update source and packaging'14 desc 'Update source and packaging' 15 15 task :default => [:update, :package, :clean] 16 16 … … 27 27 desc 'Run all tests' 28 28 task :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 end29 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 34 34 end 35 35 … … 46 46 end 47 47 48 desc ' convert source encoding from UTF-8 to EUC-JP'48 desc 'Convert source encoding from UTF-8 to EUC-JP' 49 49 task :to_euc => pkg.package_dir_path 50 50 file pkg.package_dir_path do |t| … … 64 64 # use iconv instead of nkf in the following another way... 65 65 sh <<-EOS 66 iconv --from-code=utf-8 --to-code=euc JP-ms--output #{filename}{.tmp,} && \66 iconv --from-code=utf-8 --to-code=euc-jp --output #{filename}{.tmp,} && \ 67 67 touch -m -r #{filename}{,.tmp} && \ 68 68 mv #{filename}{.tmp,} … … 75 75 end 76 76 77 desc ' clean package files'77 desc 'Clean package files' 78 78 task :clean do 79 79 rm_rf File.join(package[:pkgdir], "#{package[:name]}-#{package[:rev]}")
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)