r3758 - jhalfs/trunk/common/libs

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Sat Nov 16 23:55:30 PST 2013


Author: pierre
Date: Sat Nov 16 23:55:30 2013
New Revision: 3758

Log:
improvement of the copy flags when using a BLFS working copy

Modified:
   jhalfs/trunk/common/libs/func_install_blfs

Modified: jhalfs/trunk/common/libs/func_install_blfs
==============================================================================
--- jhalfs/trunk/common/libs/func_install_blfs	Sat Nov 16 14:35:25 2013	(r3757)
+++ jhalfs/trunk/common/libs/func_install_blfs	Sat Nov 16 23:55:30 2013	(r3758)
@@ -28,7 +28,9 @@
 
 # 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.



More information about the alfs-log mailing list