/usr/src/user.bin/vi/Makefile sets things up to build vi from the desired parts of /usr/src/contrib/nvi, the makefile defines a list of $(LINKS) mapping n(vi/ex/view) to their traditional counter parts, and let's bsd.prog.mk handle creating the hardlinks.
But I don't understand your comment about using a symlink though. Shouldn't a hardlink be more efficient then a symbolic link? A number of things on the system appear to be just hard links, on my OpenBSD 4.3 machine for example, sh, ksh,rksh all have the same inode number and number of links.
__________________
My Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
|