Preserve directory structure in PRESERVED_FILES_DIR to avoid

filename collisions.

Submitted by:	des
This commit is contained in:
Doug Barton 2003-05-03 06:35:19 +00:00
parent f92039a1fc
commit f3fff89357
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114565

View File

@ -656,8 +656,8 @@ do_install_and_rm () {
case "${PRESERVE_FILES}" in
[Yy][Ee][Ss])
if [ -f "${3}/${2##*/}" ]; then
mkdir -p ${PRESERVE_FILES_DIR}
cp ${3}/${2##*/} ${PRESERVE_FILES_DIR}
mkdir -p ${PRESERVE_FILES_DIR}/${2%/*}
cp ${3}/${2##*/} ${PRESERVE_FILES_DIR}/${2%/*}
fi
;;
esac