SmartCopy

SmartCopy copies files and overwrites duplicates, even if the duplicate is write protected. It also preserves the modification date to prevent unnecessary rebuilds.

Syntax

    SmartCopy [-p] [-q] [-v] sourceFile [sourceFile...] destination

Arguments -p (Obsolete option; this is now built-in behavior.) Creates the parent directory for destination if it doesn't exist.
-q (Quiet) Suppresses the file copied message. If you omit this option, SmartCopy displays a message for each file copied.
-v (Verbose) Displays a message for every action, including what SmartCopy did not copy and why. If you omit this option, don't include -q, SmartCopy displays a message only for each file copied.
destination The destination of the file being copied. destination must be a directory when you specify more than one sourceFile.
sourceFile The file(s) to copy.

Usage

SmartCopy is a cp imitator that solves one specific problem: during the Includes phase of the build, when header files are copied to $TaligentIncludes, if a file exists in $TaligentIncludes, and it is write protected, cp fails but SmartCopy does not. SmartCopy also preserves the modification date to prevent unnecessary rebuilds. SmartCopy copies a file unless the target file has exactly the same date, time, and size as the source file.

SmartCopy creates a destination directory if necessary.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker