]>
git.saurik.com Git - apple/security.git/blob - certificates/CertificateTool/BuildiOSAsset/BuildPListFiles.rb
5 # Copyright 2012 Apple Inc. All rights reserved.
10 def do_output_str(str
, header
= false)
13 puts
"=====================================================" if header
17 do_output_str(nil, true)
19 do_output_str
"Entering BuildPlistFiles.rb"
20 do_output_str(nil, true)
23 build_dir
= ENV["BUILT_PRODUCTS_DIR"]
24 sdk_name
= ENV["SDK_NAME"]
25 top_level_directory
= ENV["PROJECT_DIR"]
27 do_output_str(nil, true)
28 do_output_str("Environment variables")
31 do_output_str
"build_dir = #{build_dir}"
32 do_output_str
"sdk_name = #{sdk_name}"
33 do_output_str
"top_level_directory = #{top_level_directory}"
34 do_output_str(nil, true)
37 top_level_directory
= File
.join(top_level_directory
, "..")
38 output_directory
= File
.join(build_dir
, "asset_out")
39 tool_path
= File
.join(build_dir
, "CertificateTool")
41 do_output_str(nil, true)
42 do_output_str("Path variables")
43 do_output_str
"top_level_directory = #{top_level_directory}"
44 do_output_str
"output_directory = #{output_directory}"
45 do_output_str
"tool_path = #{tool_path}"
46 do_output_str(nil, true)
49 cmd_str
= tool_path +
" --top_level_directory " +
"'" + top_level_directory +
"' " +
" --output_directory " +
"'" + output_directory +
"'"
50 do_output_str(nil, true)
51 do_output_str
"Executing command: #{cmd_str}"
52 do_output_str(nil, true)
57 do_output_str(nil, true)
58 do_output_str
"Completed BuildPlistFiles.rb"
59 do_output_str(nil, true)