parameters: (rootSrcDir, outdir)
docstring: Extract the linkdef files
docstring_summary: Extract the linkdef files
docstring_tokens: Extract the linkdef files
function: def copyLinkDefs(rootSrcDir, outdir):
     """
     Extract the linkdef files
     """
     linkDefPartContent = ""
     curDir = os.getcwd()
     os.chdir(rootSrcDir)
     wildcards = (os.path.join("*", "inc", "*LinkDef*.h"),
                  os.path.join("*", "*", "inc", "*LinkDef*.h"),
                  os.path.join("*", "*", "inc", "*" , "*LinkDef*.h"))
     linkDefNames = []
     for wildcard in wildcards:
        linkDefNames += glob.glob(wildcard)
     os.chdir(curDir)
     for linkDefName in linkDefNames:
        linkDefDirName = os.path.dirname(linkDefName)
        mkdirIfNotThere(os.path.join(outdir,linkDefDirName))
        srcName = os.path.join(rootSrcDir,linkDefName)
        destName = os.path.join(outdir,linkDefName)
        shutil.copyfile(srcName, destName)
function_tokens: def copyLinkDefs ( rootSrcDir , outdir ) : linkDefPartContent = "" curDir = os . getcwd ( ) os . chdir ( rootSrcDir ) wildcards = ( os . path . join ( "*" , "inc" , "*LinkDef*.h" ) , os . path . join ( "*" , "*" , "inc" , "*LinkDef*.h" ) , os . path . join ( "*" , "*" , "inc" , "*" , "*LinkDef*.h" ) ) linkDefNames = [ ] for wildcard in wildcards : linkDefNames += glob . glob ( wildcard ) os . chdir ( curDir ) for linkDefName in linkDefNames : linkDefDirName = os . path . dirname ( linkDefName ) mkdirIfNotThere ( os . path . join ( outdir , linkDefDirName ) ) srcName = os . path . join ( rootSrcDir , linkDefName ) destName = os . path . join ( outdir , linkDefName ) shutil . copyfile ( srcName , destName )