aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-12 13:46:27 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-12 13:49:08 -0700
commit3c116cd077f9f70bf4b9996da0f11d00f06b6293 (patch)
treeab0e1e61ae26b4b0be381a6a769c055241cf0b6c /Makefile.in
parentbcab703e3136ef5c5fa72de1f3169059b5a531e9 (diff)
Change Makefile to not delete legacy binaries, but instead just notify the user about them. Change Makefile to only look for legacy binaries in $PREFIX instead of using which.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in31
1 files changed, 14 insertions, 17 deletions
diff --git a/Makefile.in b/Makefile.in
index 83774d82..06b6933c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -509,23 +509,20 @@ check-uninstall:
fi;
.PHONY: check-uninstall
-
-# seq used to be a shell script that we would install
-# Now we just look for previously installed seqs, and erase them
-# No big deal if it fails
-# same with set_color, which is now a builtin.
-# Invoke set_color with -v to make sure it's ours.
-cleanup_old_binaries:
- SEQLOC=`which seq`;\
- if test -x "$$SEQLOC" && grep -q '\(^#!/.*/fish\|^#!/usr/bin/env fish\)' "$$SEQLOC"; then\
- rm -f "$$SEQLOC";\
- fi;\
- SETCOLOR_LOC=`which set_color`;\
+check-legacy-binaries:
+ @SEQLOC=$(prefix)/bin/seq;\
+ if test -f "$$SEQLOC" && grep -q '\(^#!/.*/fish\|^#!/usr/bin/env fish\)' "$$SEQLOC"; then\
+ echo "An outdated seq from a previous fish install was found. You should remove it with:";\
+ echo " rm '$$SEQLOC'";\
+ fi;
+ @SETCOLOR_LOC=$(prefix)/bin/set_color;\
if test -x "$$SETCOLOR_LOC" && $$SETCOLOR_LOC -v 2>&1 >/dev/null | grep -q "^set_color, version "; then\
- rm -f "$$SETCOLOR_LOC";\
- fi;\
- true;
-.PHONY: cleanup_old_binaries
+ echo "An outdated set_color from a previous fish install was found. You should remove it with:";\
+ echo " rm '$$SETCOLOR_LOC'";\
+ fi;
+ @true;
+.PHONY: check-legacy-binaries
+
#
# This check makes sure that the install-sh script is executable. The
@@ -542,7 +539,7 @@ install-sh:
# Try to install after checking for incompatible installed versions.
#
-install: all cleanup_old_binaries install-sh check-uninstall install-force
+install: all install-sh check-uninstall install-force check-legacy-binaries
.PHONY: install
#