-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
46 lines (35 loc) · 961 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'rake/clean'
CLEAN.include 'pkg', '**/pkg'
def rake(args)
ruby "-S", "rake", *args
end
SUBDIRS = %w[jdbc-nuodb activerecord-jdbcnuodb-adapter]
task :default => ["all:build"]
task "all:build" => [*SUBDIRS.map { |f| "#{f}:build" }]
task "all:install" => [*SUBDIRS.map { |f| "#{f}:install" }]
task "all:release" => [*SUBDIRS.map { |f| "#{f}:release" }]
(SUBDIRS).each do |subdir|
namespace subdir do
task :build do
puts "----- #{subdir}:build"
Dir.chdir(subdir) do
rake "build"
end
Dir.mkdir("pkg") unless File.directory?("pkg")
cp FileList["#{subdir}/pkg/#{subdir}-*.gem"], "pkg"
end
# bundler handles install => build itself
task :install do
puts "----- #{subdir}:install"
Dir.chdir(subdir) do
rake "install"
end
end
task :release do
puts "----- #{subdir}:release"
Dir.chdir(subdir) do
rake "release"
end
end
end
end