From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Kenji Arisawa To: 9fans@cse.psu.edu Content-Transfer-Encoding: 7bit Message-Id: Subject: [9fans] cpdir Date: Mon, 29 Sep 2003 23:03:35 +0900 Topicbox-Message-UUID: 5582f42c-eacc-11e9-9e20-41e7f4b1d025 Hello 9fans. cpdir is updated to ver.1.4 -x option is added # # Usage # Usage: cpdir [-vugRm] [-l file] [-x xfile] srcdir destdir [path ...] Options and arguments: -v: verbose -u: copy owner info -g: copy group info -R: remove redundant files and directories in dstdir -m: merge -l file: A file of path list to be processed. Path list must be a path per line. -x xfile A file of path list that should not be copied. Path list must be a path per line. Rc style globe expression is allowed for the path. In the matching rule, "/" is simply a character. srcdir: source dir from which copy is made. destdir: destination dir in which copy is made. path ... : pathes in source to be processed. Function: `cpdir' makes effort to make a copy of file in srcdir to dstdir. Those that are copied are: - contents - modification time - permissions - group if possible. (under -g option) - owner if possible. (under -u option) What happens if there are files of same name in both source and destination? Let s.mtime and d.mtime be modification time of source and destination respectively. Then `cpdir' copies: - contents (if s.mtime > d.mtime) - modification time (if source.mtime > destination.mtime) - permissions (if s.mtime >= d.mtime) - group (under -g option, if s.mtime >= d.mtime) - owner if possible. (under -u option, if s.mtime >= d.mtime) With -R option, `cpdir' removes files and directories in destination that are non-existent in source. Kenji Arisawa E-mail: arisawa@ar.aichi-u.ac.jp NOTE: replace "@ar." by "@"