Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

# little ruby script to build versions for all resolution types
#
# Author: Marcus -LiGi- Bueschleb
#
# see README for further Infos

resdir="res/"

puts `mv build.props build.props.bak`
puts `ant clean`

Dir[resdir+"*"].each { |res_type|
 res_type.gsub!(resdir,"")
 p res_type

 prefs_file= File.new("build.props","w")
 prefs_file <<  ("screensize="+res_type+"\n")  
 prefs_file.close

 log= `ant build`
 log.each_line {        |l| puts l }
}
puts `mv -v  build.props.bak build.props`