parameters: (dest, source, env)
return_statement: return 0
docstring: Install a versioned library into a destination by copying,
      (including copying permission/mode bits) and then creating
      required symlinks.
docstring_summary: Install a versioned library into a destination by copying,
      (including copying permission/mode bits) and then creating
      required symlinks.
docstring_tokens: Install a versioned library into a destination by copying ( including copying permission / mode bits ) and then creating required symlinks .
function: def copyFuncVersionedLib(dest, source, env):
      """Install a versioned library into a destination by copying,
      (including copying permission/mode bits) and then creating
      required symlinks."""
  
      if os.path.isdir(source):
          raise SCons.Errors.UserError("cannot install directory `%s' as a version library" % str(source) )
      else:
          # remove the link if it is already there
          try:
              os.remove(dest)
          except:
              pass
          shutil.copy2(source, dest)
          st = os.stat(source)
          os.chmod(dest, stat.S_IMODE(st[stat.ST_MODE]) | stat.S_IWRITE)
          installShlibLinks(dest, source, env)
  
      return 0
function_tokens: def copyFuncVersionedLib ( dest , source , env ) : if os . path . isdir ( source ) : raise SCons . Errors . UserError ( "cannot install directory `%s' as a version library" % str ( source ) ) else : # remove the link if it is already there try : os . remove ( dest ) except : pass shutil . copy2 ( source , dest ) st = os . stat ( source ) os . chmod ( dest , stat . S_IMODE ( st [ stat . ST_MODE ] ) | stat . S_IWRITE ) installShlibLinks ( dest , source , env ) return 0