blob: f22f7222901d2497914b5b11dd965af9d4bb1486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# GEM TASK
Rake::GemPackageTask.new(GEM_SPEC) { |pkg|
pkg.need_zip = true
pkg.need_tar = true
puts "Signed with #{CERT_PRIVATE}" if HAVE_CERT
}
desc "if dir chmod #{D_CHMOD} if file chmod #{F_CHMOD}"
task :chmod =>RDOC_FILES do
Dir.glob('**/*'){ |p|
open(p){ |f| f.chmod(F_CHMOD) } if File.file? p
open(p){ |f| f.chmod(D_CHMOD) } if File.directory? p
}
end
task :release => [:clobber, :chmod] do
puts "Preparing release of #{PROJECT_NAME} version #{PROJECT_VERSION}"
Rake::Task[:test].invoke
# Rake::Task[:rdoc].invoke
Rake::Task[:package].invoke
end
|