openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Functions | Variables
build_info Namespace Reference

Functions

def run (cmd, env={})
 
def locale ()
 
def svn (directory='.')
 
def git (directory='.')
 
def generate ()
 
def print_build_info (filename)
 

Variables

dictionary SVN_NAME_MAPPING = {'RĂ©vision': 'Revision'}
 
string TEMPLATE
 
 filename = sys.argv[1]
 

Function Documentation

◆ generate()

def build_info.generate ( )

Definition at line 160 of file build_info.py.

Here is the caller graph for this function:

◆ git()

def build_info.git (   directory = '.')

Definition at line 103 of file build_info.py.

Here is the caller graph for this function:

◆ locale()

def build_info.locale ( )
Determine the locale to use in SVN.

Definition at line 43 of file build_info.py.

Here is the caller graph for this function:

◆ print_build_info()

def build_info.print_build_info (   filename)
print build info

Definition at line 191 of file build_info.py.

◆ run()

def build_info.run (   cmd,
  env = {} 
)
Run a command with subprocess and return the stdout.

Avoiding use of subprocess.check_output to maintain backwards
compatibility.

Definition at line 29 of file build_info.py.

Here is the caller graph for this function:

◆ svn()

def build_info.svn (   directory = '.')
Get information about the SVN repository.

Uses the --show-item syntax instead of parsing the normal svn info output
to avoid issues with language locales.

Definition at line 69 of file build_info.py.

Variable Documentation

◆ filename

string build_info.filename = sys.argv[1]

Definition at line 212 of file build_info.py.

◆ SVN_NAME_MAPPING

dictionary build_info.SVN_NAME_MAPPING = {'RĂ©vision': 'Revision'}

Definition at line 67 of file build_info.py.

◆ TEMPLATE

string build_info.TEMPLATE
Initial value:
1 = """#ifndef __BUILD_INFO__
2 #define __BUILD_INFO__
3 
4 #define GIT_COMMIT_TAG "{tag}"
5 #define GIT_COMMIT_HASH "{commit}"
6 #define GIT_COMMIT_COUNT {revision}
7 #define GIT_PATH "{url}"
8 
9 #define SUBREPO_REVISIONS "{subrepo}"
10 
11 #define SUBREPO_COMMITS "{subrepocommit}"
12 
13 #endif
14 """

Definition at line 145 of file build_info.py.