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