Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

31 lines
623 B
Python
Executable File

# -*- Python -*-
#
# Dump out Xcode binary dependency file.
#
import sys
f = open(sys.argv[1], "rb")
byte = f.read(1)
while byte != b'':
if byte == b'\000':
sys.stdout.write("linker-vers: ")
elif byte == b'\020':
sys.stdout.write("input-file: ")
elif byte == b'\021':
sys.stdout.write("not-found: ")
elif byte == b'\100':
sys.stdout.write("output-file: ")
byte = f.read(1)
while byte != b'\000':
if byte != b'\012':
sys.stdout.write(byte.decode("ascii"))
byte = f.read(1)
sys.stdout.write("\n")
byte = f.read(1)
f.close()