Home | History | Annotate | Download | only in mac

Lines Matching refs:new_dir

7 # usage: dirdiffer.sh old_dir new_dir patch_dir
10 # between old_dir and new_dir. patch_dir can be used with dirpatcher to
11 # recreate new_dir given old_dir.
14 # links, and directories, as they are found in new_dir. Symbolic links and
20 # same position in old_dir to the version in new_dir, but only when such a
23 # - a bzip2-compressed copy of the new file from new_dir; in patch_dir, the
25 # - a gzip-compressed copy of the new file from new_dir; in patch_dir, the
27 # - an xz/lzma2-compressed copy of the new file from new_dir; in patch_dir,
29 # - an uncompressed copy of the new file from new_dir; in patch_dir, the
48 # 2.53GHz dual-core 4GB MacBook Pro is 3 minutes. Reconstructing new_dir with
53 # is invoked to attempt to recreate new_dir in a temporary location given
54 # old_dir and patch_dir. The recreated new_dir is then compared against the
55 # original new_dir as a verification step. Should verification fail, dirdiffer
60 # When an entry in new_dir matches this regular expression, it will not be
61 # included in patch_dir. All prospective paths in new_dir will be matched
65 # When an entry in new_dir matches this regular expression, it will not be
67 # appear as a $bz2, $gz, or $raw file. Only files in new_dir, not
353 local new_dir="${2}"
361 for new_file in "${new_dir}/"*; do
362 local file="${new_file:${#new_dir} + 1}"
388 copy_mode_and_time "${new_dir}" "${patch_dir}"
393 local new_dir="${2}"
410 "${new_dir}/" "${verify_dir}")
414 # ${g_verify_exclude[@]} contains paths in ${new_dir}. Strip off
415 # ${new_dir} from the beginning of each, but leave a leading "/" so that
417 rsync_command+=("--exclude" "${exclude:${#new_dir}}")
461 echo "usage: ${ME} old_dir new_dir patch_dir" >& 2
465 local old_dir new_dir patch_dir
467 new_dir="$(shell_safe_path "${2}")"
472 if ! [[ -d "${old_dir}" ]] || ! [[ -d "${new_dir}" ]]; then
473 err "old_dir and new_dir must exist and be directories"
517 new_dir_phys="$(cd "${new_dir}" && pwd -P)"
531 make_patch_dir "${old_dir}" "${new_dir}" "${patch_dir}"
533 verify_patch_dir "${old_dir}" "${new_dir}" "${patch_dir}"