Package libconfix :: Package core :: Package utils :: Module helper
[show private | hide private]
[frames | no frames]

Module libconfix.core.utils.helper

Function Summary
  clone_value(v)
  copy_file(sourcename, targetname, mode)
  copy_file_if_changed(sourcename, targetname, mode)
  find_confix_root(argv0)
  format_cycle_error(error)
  intersect_lists(l1, l2)
  lines_of_file(filename)
Return a list containing the lines of a file, with newlines stripped.
  make_path(str_or_list)
  md5_hexdigest_from_lines(lines)
  md5_of_file(filename)
  normalize_filename(fn)
  read_boolean(b)
Read a boolean from whatever we offer as boolean value, and return real boolean values 0 and 1, or raise an exception.
  write_lines_to_file(filename, lines)
Write lines to filename, appending newlines to each.
  write_lines_to_file_if_changed(filename, lines)
Write lines to filename if the lines are not what the file has, or if the file does not exist.

Function Details

lines_of_file(filename)

Return a list containing the lines of a file, with newlines
stripped.

read_boolean(b)

Read a boolean from whatever we offer as boolean value, and
return real boolean values 0 and 1, or raise an exception.

write_lines_to_file(filename, lines)

Write lines to filename, appending newlines to each.

write_lines_to_file_if_changed(filename, lines)

Write lines to filename if the lines are not what the file
has, or if the file does not exist. (It's not that writing the
file should be considered expensive; rather, writing the file
unnecessarily can be expensive if the file is a dependency of
another file in the build process.)

Generated by Epydoc 2.1 on Fri Nov 23 16:56:39 2007 http://epydoc.sf.net