[BACK]Return to lndir.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / lndir

Diff for /src/usr.bin/lndir/lndir.1 between version 1.20 and 1.21

version 1.20, 2005/10/04 19:30:00 version 1.21, 2005/10/06 15:28:32
Line 87 
Line 87 
 .Pp  .Pp
 This scheme has the advantage that if you update the source, you need not  This scheme has the advantage that if you update the source, you need not
 propagate the change to the other architectures by hand, since all  propagate the change to the other architectures by hand, since all
 source in all shadow directories are symlinks to the real thing: just cd  source in all shadow directories are symlinks to the real thing: just
   .Xr cd 1
 to the shadow directory and recompile away.  to the shadow directory and recompile away.
 .Pp  .Pp
 The  The
Line 95 
Line 96 
 argument is optional and defaults to the current directory.  argument is optional and defaults to the current directory.
 The  The
 .Ar fromdir  .Ar fromdir
 argument may be relative (e.g.,  argument may be relative (e.g.\&
 .Pa \&.\&./src )  .Pa ../src )
 and is relative to  and is relative to
 .Ar todir  .Ar todir
 (not the current directory).  (not the current directory).
 .Pp  .Pp
 .\" CVS.adm is used by the Concurrent Versions System.  
 Note that files whose names end in '~' or start with '.#' and  
 RCS, SCCS, CVS and CVS.adm directories are not shadowed, in  
 addition to any specified on the command line with  
 .Fl e  
 arguments.  
 .Pp  
 If you add files, simply run  If you add files, simply run
 .Nm  .Nm
 again.  again.
Line 118 
Line 112 
 Deleting files is a more painful problem; the symlinks will  Deleting files is a more painful problem; the symlinks will
 just point into never never land.  just point into never never land.
 .Pp  .Pp
   The options are as follows:
   .Bl -tag -width Ds
   .It Fl e Ar exceptfile
   Add the specified file to the list of excluded files/directories.
   This is effective in all directories searched by
   .Nm .
   This option may be specified as many times as needed.
   .Pp
   The following types of files are excluded by default:
   .Pp
   .Bl -dash -offset indent -compact
   .It
   files whose names end in
   .Sq ~
   .It
   files whose names start with
   .Sq .#
   .It
   RCS, SCCS, CVS, and CVS.adm directories
   .El
   .It Fl i
 If a file in  If a file in
 .Ar fromdir  .Ar fromdir
 is a symbolic link,  is a symbolic link,
Line 128 
Line 143 
 .Ar fromdir .  .Ar fromdir .
 The  The
 .Fl i  .Fl i
 flag changes this behavior.  flag changes that behavior,
 .Pp  i.e. it causes the program to not treat symbolic links in
 The options are as follows:  
 .Bl -tag -width Ds  
 .It Fl e Ar exceptfile  
 Add the specified file to the list of excluded files/directories.  
 This is effective in all directories searched by  
 .Nm lndir .  
 This option may be specified as many times as needed.  
 .It Fl i  
 Causes the program to not treat symbolic links in  
 .Ar fromdir  .Ar fromdir
 specially.  specially.
 The link created in  The link created in
Line 187 
Line 193 
 .Xr patch 1  .Xr patch 1
 from a shadow directory anyway.  from a shadow directory anyway.
 .Pp  .Pp
 You need to use something like  To clear out all files before you can relink
 .Bd -unfilled -offset indent  (if
 $ find todir \|\-type l \|\-print \||\| xargs rm  .Ar fromdir
   moved, for instance):
   .Bd -literal -offset indent
   $ find todir -type l -print0 | xargs -0 -r rm
 .Ed  .Ed
 .Pp  .Pp
 to clear out all files before you can relink (if fromdir moved, for instance).  Find all files that are not directories:
 Something like  .Bd -literal -offset indent
 .Bd -unfilled -offset indent  $ find . ! -type d -print0
 $ find . \|\\! \|\-type d \|\-print  
 .Ed  .Ed
 .Pp  
 will find all files that are not directories.  

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21