home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2048 / README < prev    next >
Encoding:
Text File  |  1990-12-28  |  1.6 KB  |  34 lines

  1. The mkshadow programs makes a "shadow tree" of a directory tree.
  2. It logically copies all of the "MASTER" directory into ".".
  3. However, ordinary files, and RCS directories are "copied"
  4. by creating a sybolic link to the corresponding file in MASTER.
  5.  
  6. The wildmat.c file is from GNU tar-1.09.
  7. The savedir.c file is from GNU find.
  8. Hence, the GNU license applies.
  9.  
  10.  * Usage: mkshadow [-X exclude_file] [-x exclude_pattern] ... MASTER
  11.  * Makes the current directory be a "shadow copy" of MASTER.
  12.  * Sort of like a recursive copy of MASTER to .
  13.  * However, symbolic links are used instead of actually
  14.  * copying (non-directory) files.
  15.  * Also, directories named RCS are shared (with a symbolic link).
  16.  * Warning messages are printed for files (and directories) in .
  17.  * that don't match a corresponding file in MASTER (though
  18.  * symbolic links are silently removed).
  19.  * Also, a warning message is printed for non-directory files
  20.  * under . that are  not symbolic links.
  21.  *
  22.  * Files and directories can be excluded from the sharing
  23.  * with the -X and -x flags. The flag `-x pattern' (or `-xpattern')
  24.  * means that mkshadow should ignore any file whose name matches
  25.  * the pattern. The pattern is a "globbing" pattern, i.e. the
  26.  * characters *?[^-] are interpreted as by the shell.
  27.  * If the pattern contains a '/' is is matched against the complete
  28.  * current path (relative to '.'); otherwise, it is matched
  29.  * against the last component of the path.
  30.  * A `-X filename' flag means to read a set of exclusion patterns
  31.  * from the named file, one pattern to a line.
  32.  *
  33.  * Author: Per Bothner. bothner@cs.wisc.edu. November 1990.
  34.