Back to index

salome-kernel  6.5.0
Classes | Functions | Variables
am2cmake Namespace Reference

Classes

class  CMakeFile

Functions

def convertAmFile
def usage

Variables

tuple p_multiline = re.compile(r"""\\ # One backslash\s* # 0 or more space\n # One CR""", re.VERBOSE)
tuple p_dollar = re.compile(r"""\$\( # a $ then a ((?P<val> # open the group val[^)]* # the group contain 0 or more non ) characters) # close the group\) # a ) at the end""", re.VERBOSE)
tuple p_arobas = re.compile(r"""@ # a @(?P<val> # open the group val[^@]* # the group contain 0 or more non @ characters) # close the group@ # a @ at the end""", re.VERBOSE)
tuple p_if = re.compile(r"""^ # beginning of the string\s* # 0 or more spaceif # an if\s+ # 1 or more space(?P<val> # open the group val.+ # the group contain 1 or more non space characters) # close the group""", re.VERBOSE)
tuple p_else = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceelse #\s* # 0 or more space""", re.VERBOSE)
tuple p_endif = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceendif # a endif\s* # 0 or more space""", re.VERBOSE)
tuple p_attribution = re.compile(r"""^ # beginning of the line(?P<spaces> # open the group spaces\s* # 0 or more space) # close the group(?P<key> # open the group key\w+ # the group contain 1 or more alphanumeric characters) # close the group\s* # 0 or more space(?P<method> # open the group method\+? # 0 or 1 += # One =) # close the group(?P<value> # open the group value.* # 0 or more any characters ) # close the group""", re.VERBOSE)
list module = argv[1]
tuple the_root = getcwd()
int nok = 0
 convert = True
tuple ff = open(join(root, "CMakeLists.txt"))
tuple content = ff.read()
string msg = "%s file has been converted to cmake"

Function Documentation

def am2cmake.convertAmFile (   the_root,
  root,
  dirs,
  files,
  f,
  module 
)

Definition at line 2512 of file am2cmake.py.

02512 
02513 def convertAmFile(the_root, root, dirs, files, f, module):
02514     cmake = CMakeFile(the_root, root, dirs, files, f, module)
02515     cmake.writeListsFile()
02516     return

def am2cmake.usage (   exit_status)

Definition at line 2517 of file am2cmake.py.

02517 
02518 def usage(exit_status):
02519     from sys import exit
02520     from sys import argv
02521     print "Usage: %s --module"%(argv[0])
02522     exit(exit_status)
02523     return


Variable Documentation

tuple am2cmake.content = ff.read()

Definition at line 2572 of file am2cmake.py.

Definition at line 2566 of file am2cmake.py.

tuple am2cmake.ff = open(join(root, "CMakeLists.txt"))

Definition at line 2571 of file am2cmake.py.

list am2cmake.module = argv[1]

Definition at line 2531 of file am2cmake.py.

string am2cmake.msg = "%s file has been converted to cmake"

Definition at line 2589 of file am2cmake.py.

int am2cmake.nok = 0

Definition at line 2543 of file am2cmake.py.

tuple am2cmake.p_arobas = re.compile(r"""@ # a @(?P<val> # open the group val[^@]* # the group contain 0 or more non @ characters) # close the group@ # a @ at the end""", re.VERBOSE)

Definition at line 41 of file am2cmake.py.

tuple am2cmake.p_attribution = re.compile(r"""^ # beginning of the line(?P<spaces> # open the group spaces\s* # 0 or more space) # close the group(?P<key> # open the group key\w+ # the group contain 1 or more alphanumeric characters) # close the group\s* # 0 or more space(?P<method> # open the group method\+? # 0 or 1 += # One =) # close the group(?P<value> # open the group value.* # 0 or more any characters ) # close the group""", re.VERBOSE)

Definition at line 73 of file am2cmake.py.

tuple am2cmake.p_dollar = re.compile(r"""\$\( # a $ then a ((?P<val> # open the group val[^)]* # the group contain 0 or more non ) characters) # close the group\) # a ) at the end""", re.VERBOSE)

Definition at line 33 of file am2cmake.py.

tuple am2cmake.p_else = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceelse #\s* # 0 or more space""", re.VERBOSE)

Definition at line 59 of file am2cmake.py.

tuple am2cmake.p_endif = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceendif # a endif\s* # 0 or more space""", re.VERBOSE)

Definition at line 66 of file am2cmake.py.

tuple am2cmake.p_if = re.compile(r"""^ # beginning of the string\s* # 0 or more spaceif # an if\s+ # 1 or more space(?P<val> # open the group val.+ # the group contain 1 or more non space characters) # close the group""", re.VERBOSE)

Definition at line 49 of file am2cmake.py.

tuple am2cmake.p_multiline = re.compile(r"""\\ # One backslash\s* # 0 or more space\n # One CR""", re.VERBOSE)

Definition at line 27 of file am2cmake.py.

tuple am2cmake.the_root = getcwd()

Definition at line 2541 of file am2cmake.py.