From: Ben Gras Date: Wed, 31 Jan 2007 13:00:39 +0000 (+0000) Subject: Only install /usr/bin/vi as a hardlink to elvis if there's nothing already X-Git-Tag: v3.1.3~99 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=5358dc42bfeaafe08f3e44ff3a76dc4ea57ab2bc;p=minix.git Only install /usr/bin/vi as a hardlink to elvis if there's nothing already there (so e.g. nvi isn't overwritten). --- diff --git a/commands/elvis/Makefile b/commands/elvis/Makefile index 1f1ab0e9b..17c36bfc8 100755 --- a/commands/elvis/Makefile +++ b/commands/elvis/Makefile @@ -71,8 +71,10 @@ install: /usr/bin/elvis \ /bin/elvis: elvis install -cs -o bin elvis $@ -/usr/bin/vi: elvis - install -cs -o bin elvis $@ +/usr/bin/vi: /usr/bin/elvis + if [ ! -f $@ -a ! -s $@ ]; \ + then install -l $? $@ ; \ + fi /usr/bin/ctags: ctags install -cs -o bin ctags $@