Back to index

radiance  4R0+20100331
Functions
build_utils.install Namespace Reference

Functions

def install_dir
def install_rlibfiles
def install_manfiles
def install_cshscript

Function Documentation

def build_utils.install.install_cshscript (   target,
  source,
  env 
)

Definition at line 37 of file install.py.

00037 
00038 def install_cshscript(target, source, env):
00039        for t,s in map(None,target,source):
00040               sf = open(str(s), 'r')
00041               tf = open(str(t), 'w')
00042               tf.write(sf.read())
00043               os.chmod(str(t), 00755)
00044 
def build_utils.install.install_dir (   env,
  il,
  sbase,
  tbase,
  dir 
)

Definition at line 4 of file install.py.

00004 
00005 def install_dir(env, il, sbase, tbase, dir):
00006        fulldir = os.path.join(sbase, dir)
00007        l = os.listdir(fulldir)
00008        instdir = os.path.join(tbase, dir)
00009        for item in l:
00010               if item[0] == '.' or item[-1] in '%~' or item == 'CVS':
00011                      continue
00012               elif os.path.isdir(os.path.join(fulldir, item)):
00013                      install_dir(env, il, sbase, tbase, os.path.join(dir, item))
00014               else:
00015                      inst = env.Install(instdir, os.path.join(fulldir, item))
00016                      il.append(inst)

Here is the caller graph for this function:

Definition at line 27 of file install.py.

00027 
00028 def install_manfiles(env):
00029        buildman = env['RAD_BUILDMAN']
00030        if buildman[0] == '#':
00031               buildman = buildman[1:]
00032        sbase = os.path.join(os.getcwd(), buildman)
00033        il = []
00034        install_dir(env, il, sbase, env['RAD_MANDIR'], '')
00035        env.Append(RAD_MANINSTALL=il)
00036 

Here is the call graph for this function:

Definition at line 17 of file install.py.

00017 
00018 def install_rlibfiles(env):
00019        buildrlib = env['RAD_BUILDRLIB']
00020        if buildrlib[0] == '#':
00021               buildrlib = buildrlib[1:]
00022        sbase = os.path.join(os.getcwd(), buildrlib)
00023        il = []
00024        install_dir(env, il, sbase, env['RAD_RLIBDIR'], '')
00025        env.Append(RAD_RLIBINSTALL=il)
00026 

Here is the call graph for this function: