def clean(args): extra_args = {} if args.quiet: extra_args['stdout'] = open('/dev/null', 'w') for local_path in resolve.all_module_directories(): if os.path.exists(os.path.join(local_path, 'Makefile')): if not args.quiet: print('Cleaning ' + local_path + ' ...') if subprocess.call(["make -q clean"], shell=True, cwd=local_path, stderr=subprocess.PIPE, **extra_args) != 2: if subprocess.call(["make clean"], shell=True, cwd=local_path, **extra_args): raise Exception('\'make clean\' failed in ' + local_path)
def clean(args): extra_args = {} if args.quiet: extra_args['stdout'] = open('/dev/null', 'w') for local_path in resolve.all_module_directories(): if os.path.exists(os.path.join(local_path, 'Makefile')): if not args.quiet: print('Cleaning ' + local_path + ' ...') if subprocess.call(make_cmd('-q clean', j=args.j, jobserver=args.jobserver_fds), shell=True, cwd=local_path, stderr=subprocess.PIPE, **extra_args) != 2: if subprocess.call(make_cmd('clean', j=args.j, jobserver=args.jobserver_fds), shell=True, cwd=local_path, **extra_args): raise Exception('\'make clean\' failed in ' + local_path)
def clean(args): extra_args = {} if args.quiet: extra_args["stdout"] = open("/dev/null", "w") for local_path in resolve.all_module_directories(): if os.path.exists(os.path.join(local_path, "Makefile")): if not args.quiet: print("Cleaning " + local_path + " ...") if ( subprocess.call( make_cmd("-q clean", jobserver=args.jobserver_fds), shell=True, cwd=local_path, stderr=subprocess.PIPE, **extra_args ) != 2 ): if subprocess.call( make_cmd("clean", jobserver=args.jobserver_fds), shell=True, cwd=local_path, **extra_args ): raise Exception("'make clean' failed in " + local_path)