From 5358dc42bfeaafe08f3e44ff3a76dc4ea57ab2bc Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 31 Jan 2007 13:00:39 +0000 Subject: [PATCH] Only install /usr/bin/vi as a hardlink to elvis if there's nothing already there (so e.g. nvi isn't overwritten). --- commands/elvis/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 $@ -- 2.44.0