Originally posted by ta0kira
1) be able to copy the project folder and have the original files (instead of the links) copied with the folder
1) is easy. cp -rL. the "-L" flag dereferences the symlinks, following them and copying the actual files.
2) create a shell script to see which source folders exist in the project folder, and then copy the folders from the central source directory. In case that was not clear:
This seems to defeat the purpose of using lndir in the first place. But just use simple tests and above cp command.
if [ -d APPS/ALGORITHM ]; then
cp -rL /path/ALGORITHM /path/APP;
But now you're left re-copying every time you change anything in ALGORITHM, not to mention the redundancy. man lndir and read what it says...