def generate_files(): home = os.getcwd() dir = os.path.join(topdir, 'lib', 'nfs4') use_xdr(dir, 'nfs4.x') import ops_gen # this must be delayed until nfs4.x is parsed sources = [ os.path.join(topdir, 'lib', 'ops_gen.py'), 'nfs4_const.py', 'nfs4_type.py' ] if newer_group(sources, 'nfs4_ops.py'): print "Generating nfs4_ops.py" ops_gen.run() dir = os.path.join(topdir, 'lib', 'rpc') use_xdr(dir, 'rpc.x') dir = os.path.join(topdir, 'lib', 'rpc', 'rpcsec') use_xdr(dir, 'gss.x') dir = os.path.join(topdir, 'lib', 'nlm') use_xdr(dir, 'nlm_prot.x') dir = os.path.join(topdir, 'lib', 'nsm') use_xdr(dir, 'nsm.x') # Handle NFS3 dir = os.path.join(topdir, 'lib', 'nfs3') use_xdr(dir, 'nfs3.x') use_xdr(dir, 'mount.x') use_xdr(dir, 'rpcb.x') use_xdr(dir, 'acl.x') os.chdir(home)
def generate_files(): home = os.getcwd() dir = os.path.join(topdir, 'lib', 'nfs4') use_xdr(dir, 'nfs4.x') import ops_gen # this must be delayed until nfs4.x is parsed sources = [ os.path.join(topdir, 'lib', 'ops_gen.py'), 'nfs4_const.py', 'nfs4_type.py' ] if newer_group(sources, 'nfs4_ops.py'): print "Generating nfs4_ops.py" ops_gen.run() dir = os.path.join(topdir, 'lib', 'rpc') use_xdr(dir, 'rpc.x') dir = os.path.join(topdir, 'lib', 'rpc', 'rpcsec') use_xdr(dir, 'gss.x') dir = os.path.join(topdir, 'lib', 'nlm') use_xdr(dir, 'nlm_prot.x') dir = os.path.join(topdir, 'lib', 'nsm') use_xdr(dir, 'nsm.x') # Handle NFS3 dir = os.path.join(topdir, 'lib', 'nfs3') use_xdr(dir, 'nfs3.x') use_xdr(dir, 'mount.x') use_xdr(dir, 'rpcb.x') os.chdir(home)