123456789101112131415161718192021222324252627282930313233343536373839404142434445(**************************************************************************)(* *)(* Copyright 2020 OCamlPro & Origin Labs *)(* *)(* All rights reserved. This file is distributed under the terms of the *)(* GNU Lesser General Public License version 2.1, with the special *)(* exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)openEzcmd.TYPESopenEzConfig.OPopenEzFile.OPletcmd_name="pull"letaction()=match!!Config.rsync_urlwith|None->Printf.eprintf"Error: you must define the remote url with `%s config --rsync-url`\n%!"Globals.command;exit2|Somersync_url->letargs=["rsync";"-auv";"--progress"]inletargs=args@[rsync_url//".";Globals.opambin_store_dir//".";]inPrintf.eprintf"Calling '%s'\n%!"(String.concat" "args);Misc.call(Array.of_listargs);Printf.eprintf"Done.\n%!";()letcmd={cmd_name;cmd_action=(fun()->action());cmd_args=[];cmd_man=[];cmd_doc="push binary packages to the remote server";}