*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> lndir (1X)              
Title
Content
Arch
Section
 

lndir(1X)

Contents


NAME    [Toc]    [Back]

       lndir  -  create  a  shadow directory of symbolic links to
       another directory tree

SYNOPSIS    [Toc]    [Back]

       lndir fromdir [todir]

DESCRIPTION    [Toc]    [Back]

       lndir makes a  shadow  copy  todir  of  a  directory  tree
       fromdir, except that the shadow is not populated with real
       files but instead with symbolic links pointing at the real
       files in the fromdir directory tree.  This is usually useful
 for maintaining  source  code  for  different  machine
       architectures.   You  create a shadow directory containing
       links to the real source which you will have  usually  NFS
       mounted  from  a  machine of a different architecture, and
       then recompile it.  The object files will be in the shadow
       directory,  while the source files in the shadow directory
       are just symlinks to the real files.

       This has the advantage that if you update the source,  you
       need  not  propagate the change to the other architectures
       by hand, since all source in shadow directories  are  symlinks
  to  the real thing: just cd to the shadow directory
       and recompile.

       The todir argument is optional and defaults to the current
       directory.   The  fromdir  argument may be relative (e.g.,
       ../src) and is relative to todir (not the  current  directory).


       Note that RCS, SCCS, and CVS.adm directories are not shadowed.


       Note also that if you add files, you must run lndir again.
       Deleting  files  is  difficult  because  the symlinks will
       point to places that no longer exist.

BUGS    [Toc]    [Back]

       The patch routine needs to be able to  change  the  files.
       You should never run patch from a shadow directory.

       Use  a  command  like the following to clear out all files
       before you can relink (if the fromdir has been moved,  for
       instance):

            find todir -type l -print | xargs rm

       The  following  command  will  find all files that are not
       directories:

            find . \! -type d -print




                                                        lndir(1X)
[ Back ]
 Similar pages
Name OS Title
tlink IRIX clone a file tree using symbolic links
dtfilsys HP-UX CDE file system; directory tree structure
mksymlinks IRIX make required Motif symbolic links.
ln OpenBSD make hard and symbolic links to files
create_fastlinks HP-UX configure the system to use fast symbolic links
fs_symlinks HP-UX maximum number of symbolic links used to resolve a path name
update-alternatives Linux maintain symbolic links determining default commands
mkdir Linux create a directory
mkdir Tru64 Create a directory
cd_cdrec Tru64 reads the Directory Record from a CDROM directory
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service