Subversion Repositories FlightCtrl

Rev

Rev 314 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 314 Rev 404
1
# little ruby script to build versions for all resolution types
1
# little ruby script to build versions for all resolution types
2
# 
2
# 
3
# Author: Marcus -LiGi- Bueschleb
3
# Author: Marcus -LiGi- Bueschleb
4
# MailTo: ligi@smart4mobile.de
-
 
5
#
4
#
6
 
-
 
-
 
5
# see README for further Infos
7
 
6
 
8
resdir="res/"
7
resdir="res/"
9
 
8
 
10
puts `mv build.props build.props.bak`
9
puts `mv build.props build.props.bak`
11
puts `ant clean`
10
puts `ant clean`
12
 
11
 
13
Dir[resdir+"*"].each { |res_type|
12
Dir[resdir+"*"].each { |res_type|
14
 res_type.gsub!(resdir,"")
13
 res_type.gsub!(resdir,"")
15
 p res_type
14
 p res_type
16
 
15
 
17
 prefs_file= File.new("build.props","w")
16
 prefs_file= File.new("build.props","w")
18
 prefs_file <<  ("screensize="+res_type+"\n")  
17
 prefs_file <<  ("screensize="+res_type+"\n")  
19
 prefs_file.close
18
 prefs_file.close
20
 
19
 
21
 log= `ant build`
20
 log= `ant build`
22
 log.each_line {        |l| puts l }
21
 log.each_line {        |l| puts l }
23
}
22
}
24
puts `mv -v  build.props.bak build.props`
23
puts `mv -v  build.props.bak build.props`
25
 
24
 
26
 
25