View Single Post
Old 12th September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

/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''.
Reply With Quote