Merge pull request #468 from dguzek/OS-X-BundleScript
fix OS X bundle scripts
This commit is contained in:
@@ -22,13 +22,19 @@ end
|
|||||||
|
|
||||||
# open ProductInfo.h in read-only mode
|
# open ProductInfo.h in read-only mode
|
||||||
File.open("#{Dir.pwd}/ProductInfo.h", "r") do |f|
|
File.open("#{Dir.pwd}/ProductInfo.h", "r") do |f|
|
||||||
# read each line, matching for product family and version
|
# read each line, matching for product family
|
||||||
f.each do |line|
|
f.each do |line|
|
||||||
if line.match( /^#define\s+PRODUCT_FAMILY_BARE\s+(.*?)\s*$/ )
|
if line.match( /^#define\s+PRODUCT_FAMILY_BARE\s+(.*?)\s*$/ )
|
||||||
family = $1;
|
family = $1
|
||||||
|
end
|
||||||
elsif line.match( /^#define\s+PRODUCT_VER_BARE\s+(.*?)\s*$/ )
|
end
|
||||||
version = $1;
|
end
|
||||||
|
# open ver.h in read-only mode
|
||||||
|
File.open("#{Dir.pwd}/ver.h", "r") do |f|
|
||||||
|
# read each line, matching for product version
|
||||||
|
f.each do |line|
|
||||||
|
if line.match( /^#define\s+product_version\s+"(.*?)"/ )
|
||||||
|
version = $1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user