Only install /usr/bin/vi as a hardlink to elvis if there's nothing already

there (so e.g. nvi isn't overwritten).
This commit is contained in:
Ben Gras 2007-01-31 13:00:39 +00:00
parent ce5add84e8
commit 5358dc42bf

View file

@ -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 $@