srclinks: --------- This is a shell script for making copies of directory trees, using symlinks to the original files instead of copying the files themselves. I use this script to mirror source trees (available via read-only NFS), on different architectures and under any unix flavour to make it easier to build things on multiple platforms using the same base source files. The building/compiling occurs within the symlinked tree. This way, object files can be created in the symlinked tree without clobbering someone else's build/compile attempt for another architecture. Files which require local edits/changes have to be copied manually, replacing the symlink, so that the base files stay untouched. It's not perfect but it's useful. The script is generic enough that it can be used to mirror any tree (ie. the original tree doesn't have to be mounted via NFS). If the script is run a 2nd time with identical parameters in the same location, then it only creates symlinks for files found in the original tree but missing in the shadow tree. Directory names which are symlinked, by default: CVS RCS DIST ORIG .ORIG (eg. so that the RCS files remain common, too). usages: % srclinks src-dir [dst-dir] % srclinks SRC dst-dir # if the ./SRC symlink exists. usage string: srclinks [-dq] [-s ] [-t target-dir] source-dir [tree ...] -d enable debugging output. -q quiet - don't show status messages. -s use instead of 'SRC' as the link directory name. -t build the shadow tree in instead of '.'