git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143782
91177308-0d34-0410-b5e6-
96231b3b80d8
# The only quoting we currently perform is for ':', to support msys users.
return value.replace(":", "\\:")
# The only quoting we currently perform is for ':', to support msys users.
return value.replace(":", "\\:")
+def make_install_dir(path):
+ """
+ make_install_dir(path) -> None
+
+ Create the given directory path for installation, including any parents.
+ """
+
+ # os.makedirs considers it an error to be called with an existant path.
+ if not os.path.exists(path):
+ os.makedirs(path)
+
###
class LLVMProjectInfo(object):
###
class LLVMProjectInfo(object):
for _,_,deps in entries) + 1
# Write out the library table.
for _,_,deps in entries) + 1
# Write out the library table.
+ make_install_dir(os.path.dirname(output_path))
f = open(output_path, 'w')
print >>f, """\
//===- llvm-build generated file --------------------------------*- C++ -*-===//
f = open(output_path, 'w')
print >>f, """\
//===- llvm-build generated file --------------------------------*- C++ -*-===//
dependencies = list(self.get_fragment_dependencies())
# Write out the CMake fragment.
dependencies = list(self.get_fragment_dependencies())
# Write out the CMake fragment.
+ make_install_dir(os.path.dirname(output_path))
f = open(output_path, 'w')
# Write the header.
f = open(output_path, 'w')
# Write the header.
dependencies = list(self.get_fragment_dependencies())
# Write out the Makefile fragment.
dependencies = list(self.get_fragment_dependencies())
# Write out the Makefile fragment.
+ make_install_dir(os.path.dirname(output_path))
f = open(output_path, 'w')
# Write the header.
f = open(output_path, 'w')
# Write the header.