Lines Matching full:patch_dir
7 # usage: dirpatcher.sh old_dir patch_dir new_dir
9 # dirpatcher creates new_dir from patch_dir by decompressing and copying
249 patch_dir() {
251 local patch_dir="${2}"
259 for patch_file in "${patch_dir}/"*; do
260 local file="${patch_file:${#patch_dir} + 1}"
272 patch_dir "${old_file}" "${patch_file}" "${new_file}"
281 copy_mode_and_time "${patch_dir}" "${new_dir}"
309 echo "usage: ${ME} old_dir patch_dir new_dir" >& 2
313 local old_dir patch_dir new_dir
315 patch_dir="$(shell_safe_path "${2}")"
320 if ! [[ -d "${old_dir}" ]] || ! [[ -d "${patch_dir}" ]]; then
321 err "old_dir and patch_dir must exist and be directories"
342 patch_dir_phys="$(cd "${patch_dir}" && pwd -P)"
356 patch_dir "${old_dir}" "${patch_dir}" "${new_dir}"