I want to copy my files but convert the symbolic links to hard links (ie. the actual file). How can I do this?
Here's my code (that isn't working):
cp -RL ${FROM_DIR} ${TO_DIR}
Note: this is for Xcode purposes - symlinks are not allowed in a build.
Thanks!
EDIT:
The issue is the way I remove the files first - it isn't removing existing symlinks.
rm -RLf "${FROM_DIR}/*"