-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmkgem-econe.rb
50 lines (35 loc) · 922 Bytes
/
mkgem-econe.rb
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
46
47
48
49
require 'fileutils'
include FileUtils
LIBS=[
'src/cloud/common/CloudClient.rb',
'src/cloud/ec2/lib/views'
]
ECONE_LIBS=[
'src/cloud/ec2/lib/EC2QueryClient.rb'
]
BIN=[
'src/cloud/ec2/bin/econe-describe-images',
'src/cloud/ec2/bin/econe-describe-instances',
'src/cloud/ec2/bin/econe-register',
'src/cloud/ec2/bin/econe-run-instances',
'src/cloud/ec2/bin/econe-terminate-instances',
'src/cloud/ec2/bin/econe-upload'
]
GEMSPEC='share/gems/econe.gemspec'
rm_rf 'gem_build/econe'
mkdir_p 'gem_build/econe'
mkdir_p 'gem_build/econe/lib'
mkdir_p 'gem_build/econe/lib/econe'
mkdir_p 'gem_build/econe/bin'
LIBS.each do |f|
cp_r f, 'gem_build/econe/lib'
end
ECONE_LIBS.each do |f|
cp_r f, 'gem_build/econe/lib/econe'
end
BIN.each do |f|
cp_r f, 'gem_build/econe/bin'
end
cp GEMSPEC, 'gem_build/econe'
cd 'gem_build/econe'
system 'gem build '+File.basename(GEMSPEC)