]>
git.saurik.com Git - apple/security.git/blob - certificates/ota_cert_tool/Scripts/BuildPlistFiles.rb
5 # Copyright 2012 Apple Inc. All rights reserved.
8 puts
"Entering BuildPlistFiles.rb"
10 build_dir
= ENV["BUILT_PRODUCTS_DIR"]
11 executable_path
= ENV["EXECUTABLE_PATH"]
12 sdk_name
= ENV["SDK_NAME"]
13 top_level_directory
= ENV["PROJECT_DIR"]
16 top_level_directory
= File
.join(top_level_directory
, "..")
18 output_directory
= File
.expand_path("~/tmp/asset_out")
20 tool_path
= File
.join(build_dir
, "ios_ota_cert_tool")
22 #sdk_name = sdk_name.nil? ? " " : "-sdk #{sdk_name} "
25 #cmd_str = "xcrun " + sdk_name + "-run ios_ota_cert_tool --top_level_directory " + "'" + top_level_directory + "' " + " --output_directory " + "'" + output_directory + "'"
27 cmd_str
= tool_path +
" --top_level_directory " +
"'" + top_level_directory +
"' " +
" --output_directory " +
"'" + output_directory +
"'"
29 puts
"Executing command: #{cmd_str}"