Home | History | Annotate | Download | only in utils

Lines Matching refs:directory

24 #  - The software version deduced from the CHANGES file in the given directory.
26 # git commit information for the directory. The commit information
44 def mkdir_p(directory):
45 """Make the directory, and all its ancestors as required. Any of the
48 if directory == "":
49 # We're being asked to make the current directory.
53 os.makedirs(directory)
55 if e.errno == errno.EEXIST and os.path.isdir(directory):
61 def command_output(cmd, directory):
62 """Runs a command in a directory and returns its standard output stream.
69 cwd=directory,
74 raise RuntimeError('Failed to run %s in %s' % (cmd, directory))
78 def deduce_software_version(directory):
80 in the given directory.
90 changes_file = os.path.join(directory, 'CHANGES')
99 def describe(directory):
103 Runs 'git describe', or alternately 'git rev-parse HEAD', in directory. If
111 return command_output(['git', 'describe'], directory).rstrip().decode()
115 ['git', 'rev-parse', 'HEAD'], directory).rstrip().decode()