]> git.saurik.com Git - apple/security.git/blob - certificates/ota_cert_tool/Scripts/BuildPlistFiles.rb
Security-57031.1.35.tar.gz
[apple/security.git] / certificates / ota_cert_tool / Scripts / BuildPlistFiles.rb
1 #
2 # BuildPlistFiles.rb
3 # ios_ota_cert_tool
4 #
5 # Copyright 2012 Apple Inc. All rights reserved.
6 #
7
8 puts "Entering BuildPlistFiles.rb"
9
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"]
14
15
16 top_level_directory = File.join(top_level_directory, "..")
17
18 output_directory = File.expand_path("~/tmp/asset_out")
19
20 tool_path = File.join(build_dir, "ios_ota_cert_tool")
21
22 #sdk_name = sdk_name.nil? ? " " : "-sdk #{sdk_name} "
23
24
25 #cmd_str = "xcrun " + sdk_name + "-run ios_ota_cert_tool --top_level_directory " + "'" + top_level_directory + "' " + " --output_directory " + "'" + output_directory + "'"
26
27 cmd_str = tool_path + " --top_level_directory " + "'" + top_level_directory + "' " + " --output_directory " + "'" + output_directory + "'"
28
29 puts "Executing command: #{cmd_str}"
30 exec cmd_str
31
32
33
34
35