Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: each_word_rege…
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (34 sloc) 1.205 kb
# encoding: utf-8
require "#{File.dirname(__FILE__)}/lib/unicode_utils/version"
gem_filename = "unicode_utils-#{UnicodeUtils::VERSION}.gem"
task "default" => "test"
desc "Run unit tests."
task "test" do
sh "ruby19 -I lib test/suite.rb"
end
desc "Build unicode_utils gem."
task "gem" do
sh "gem19 build unicode_utils.gemspec"
mkdir "pkg" unless File.directory? "pkg"
mv gem_filename, "pkg"
end
desc "Run rdoc to generate html documentation."
task "doc" do
# Note: current Ruby 1.9.1 rdoc fails when a custom template
# is given. rdoc must be Ruby 1.8 version.
sh "rdoc -o doc --inline-source --template=docsrc/jamis.rb --charset=UTF-8 --title=UnicodeUtils --main=README.txt lib README.txt INSTALL.txt"
end
desc "Publish doc/ on unicode-utils.rubyfore.org. " +
"Note: scp will prompt for rubyforge password."
task "publish-doc" => "doc" do
sh "scp -r doc/* langi@rubyforge.org:/var/www/gforge-projects/unicode-utils/"
end
desc "Compile Unicode data files from data/ to cdata/."
task "compile-data" do
sh "ruby19 data/compile.rb"
end
desc "Remove generated packages and documentation."
task "clean" do
rm_r "pkg" if File.exist? "pkg"
rm_r "doc" if File.exist? "doc"
end
Jump to Line
Something went wrong with that request. Please try again.