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:
parent
ce5add84e8
commit
5358dc42bf
1 changed files with 4 additions and 2 deletions
|
@ -71,8 +71,10 @@ install: /usr/bin/elvis \
|
||||||
/bin/elvis: elvis
|
/bin/elvis: elvis
|
||||||
install -cs -o bin elvis $@
|
install -cs -o bin elvis $@
|
||||||
|
|
||||||
/usr/bin/vi: elvis
|
/usr/bin/vi: /usr/bin/elvis
|
||||||
install -cs -o bin elvis $@
|
if [ ! -f $@ -a ! -s $@ ]; \
|
||||||
|
then install -l $? $@ ; \
|
||||||
|
fi
|
||||||
|
|
||||||
/usr/bin/ctags: ctags
|
/usr/bin/ctags: ctags
|
||||||
install -cs -o bin ctags $@
|
install -cs -o bin ctags $@
|
||||||
|
|
Loading…
Reference in a new issue