Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 36 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | # |
2 | # |
3 | # Author: Marcus -LiGi- Bueschleb |
3 | # Author: Marcus -LiGi- Bueschleb |
4 | # |
4 | # |
5 | # see README for further Infos |
5 | # see README for further Infos |
Line -... | Line 6... | ||
- | 6 | ||
6 | 7 | ||
Line -... | Line 8... | ||
- | 8 | resdir="res/" |
|
7 | resdir="res/" |
9 | |
8 | 10 | ||
Line 9... | Line -... | ||
9 | puts `mv build.props build.props.bak` |
- | |
10 | puts `ant clean` |
- | |
11 | - | ||
12 | Dir[resdir+"*"].each { |res_type| |
- | |
13 | res_type.gsub!(resdir,"") |
- | |
14 | p res_type |
- | |
15 | - | ||
Line -... | Line 11... | ||
- | 11 | puts `mv build.props build.props.bak` |
|
- | 12 | puts `ant clean` |
|
- | 13 | ||
- | 14 | ||
- | 15 | ||
- | 16 | screensizes=["240x320","176x220","128x128"] |
|
- | 17 | voice_modes=["no_voice","de_tts"] |
|
- | 18 | ||
- | 19 | ||
16 | prefs_file= File.new("build.props","w") |
20 | propertys={} |
- | 21 | ||
- | 22 | screensizes.each { |screensize| |
|
- | 23 | p "cleaning ressources" |
|
- | 24 | p `rm -rf tmp/res` |
|
- | 25 | p `mkdir tmp/res` |
|
- | 26 | p "processing Screensize " + screensize |
|
- | 27 | p `cp -v res/images_by_screensize/#{screensize}/* tmp/res/` |
|
- | 28 | ||
- | 29 | ||
- | 30 | propertys["screensize"]=screensize |
|
- | 31 | ||
- | 32 | ||
- | 33 | voice_modes.each { |voice_mode| |
|
- | 34 | p "processing voice_mode" + voice_mode |
|
- | 35 | propertys["voice_mode"]=voice_mode |
|
- | 36 | ||
- | 37 | propertys["basename"]="DUBwise-#{screensize}-#{voice_mode}" |
|
- | 38 | p `cp -v res/voice_samples_by_name/#{voice_mode}/* tmp/res/` |
|
- | 39 | ||
- | 40 | ||
- | 41 | prefs_file= File.new("build.props","w") |
|
- | 42 | propertys.each_pair {|name,value| |
|
17 | prefs_file << ("screensize="+res_type+"\n") |
43 | prefs_file << name+"="+value+"\n" |
- | 44 | } |
|
- | 45 | prefs_file.close |
|
- | 46 | ||
18 | prefs_file.close |
47 | `ant build`.each_line { |l| puts l } |
19 | 48 | } |