1 .\" $XConsortium: lndir.man /main/2 1995/07/17 10:49:35 drk $
2 .TH LNDIR 1 "Release 5" "X Version 11"
4 lndir \- create a shadow directory of symbolic links to another directory tree
14 except that the shadow is not
15 populated with real files but instead with symbolic links pointing at
18 directory tree. This is usually useful for maintaining source code for
19 different machine architectures. You create a shadow directory
20 containing links to the real source which you will have usually NFS
21 mounted from a machine of a different architecture, and then recompile
22 it. The object files will be in the shadow directory, while the
23 source files in the shadow directory are just symlinks to the real
26 This has the advantage that if you update the source, you need not
27 propagate the change to the other architectures by hand, since all
28 source in shadow directories are symlinks to the real thing: just cd
29 to the shadow directory and recompile away.
33 argument is optional and defaults to the current directory. The
35 argument may be relative (e.g., ../src) and is relative to
37 (not the current directory).
40 Note that RCS and SCCS directories are not shadowed.
43 Note that if you add files, you must run
45 again. Deleting files is a more painful problem; the symlinks will
46 just point into never never land.
49 gets upset if it cannot change the files. You should never run
51 from a shadow directory anyway.
53 You need to use something like
55 find todir -type l -print | xargs rm
57 to clear out all files before you can relink (if fromdir moved, for instance).
60 find . \\! -type d -print
62 will find all files that are not directories.