From e58cf153086d885194c3532b89a38f50ac9c2006 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 17 Nov 2013 07:55:30 +0000 Subject: [PATCH] improvement of the copy flags when using a BLFS working copy --- common/libs/func_install_blfs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs index fe40659..e81742a 100644 --- a/common/libs/func_install_blfs +++ b/common/libs/func_install_blfs @@ -28,7 +28,9 @@ sed -i s@trunk/BOOK@$BLFS_TREE@ \ # If we have a working copy, copy it: if [[ "$BLFS_WORKING_COPY" = "y" ]]; then - cp -r $BLFS_WC_LOCATION ${BUILDDIR}${BLFS_ROOT}/blfs-xml +# -r: recursive; -u: only if newer; -T: otherwise, would copy to a subdirectory +# of blfs-xml, if blfs-xml already exists + cp -ruT $BLFS_WC_LOCATION ${BUILDDIR}${BLFS_ROOT}/blfs-xml fi # Downloads the book if necessary, initialize the tracking file and the # package database.