yangmu266 / hlink

a simple command-line utility that implements hardlinks on Mac OsX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hlink (formerly hardlink)

a simple command-line utility that implements directory hardlinks on Mac OsX

to link: hlink source destination
to unlink: hlink -u destination

Motivation

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

Requirements

  • You need xCode command line tools installed to use make command

Installation

brew install http ...

Usage

To create a hard link:

  • hlink source destination

To remove the link:

  • hlink -u destination

About

a simple command-line utility that implements hardlinks on Mac OsX


Languages

Language:C 85.6%Language:Makefile 14.4%