a simple command-line utility that implements directory hardlinks on Mac OsX
to link: hardlink source destination
to unlink: hardlink -u destination
I was trying to patch a third-party library and make the files available in our code directory without having to copy the files every time I patch it.
I got the idea from some stackoverflow questions.. and decided to create a lib out if it that everybody can use
- You need xCode command line tools installed to use
make
command
git clone git://github.com/selkhateeb/hardlink.git
make
sudo make install
Note: in case you get error directory /usr/local/bin does not exist
, just copy hardlink app into /usr/bin
instead
To create a hard link:
hardlink source destination
To remove the link:
hardlink -u destination