Home | History | Annotate | Download | only in mac

Lines Matching refs:new_dir

7 # usage: dirpatcher.sh old_dir patch_dir new_dir
9 # dirpatcher creates new_dir from patch_dir by decompressing and copying
252 local new_dir="${3}"
254 if ! mkdir "${new_dir}"; then
262 local new_file="${new_dir}/${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
316 new_dir="$(shell_safe_path "${3}")"
326 if [[ -e "${new_dir}" ]]; then
327 err "new_dir must not exist"
333 new_dir_parent="$(dirname "${new_dir}")"
335 err "new_dir parent directory must exist and be a directory"
344 new_dir_phys="${new_dir_parent_phys}/$(basename "${new_dir}")"
354 g_cleanup+=("${new_dir}")
356 patch_dir "${old_dir}" "${patch_dir}" "${new_dir}"