forked from zynaddsubfx/zyn-fusion-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-src.rb
42 lines (36 loc) · 810 Bytes
/
build-src.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
#Settings
CurrentVersion = "3.0.2"
def cmd(x)
puts x
ret = system(x)
if(!ret)
puts "ERROR: '#{x}' failed"
exit 1
end
end
def stage(x)
puts "# #{x}"
end
def chdir(x)
puts "Changing directory to #{x}"
Dir.chdir(x)
end
def clean()
dir = "zyn-fusion-ui-src-#{CurrentVersion}"
cmd "rm -rf #{dir}"
cmd "rm -f #{dir}.tar"
cmd "rm -f #{dir}.tar.bz2"
end
def get_zest()
dir = "zyn-fusion-ui-src-#{CurrentVersion}"
stage "Getting Zest"
#Clone the unreleased UI submodules
cmd "git clone --depth=1 https://github.com/mruby-zest/mruby-zest-build #{dir}"
chdir "#{dir}"
cmd "git submodule update --init"
cmd "git archive-all --prefix #{dir} ../#{dir}.tar"
chdir ".."
cmd "bzip2 #{dir}.tar"
end
clean()
get_zest()