aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-12 15:18:19 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-12 15:18:19 -0800
commite1190eb1f34418f6c7a422f537eb75a434e71240 (patch)
treef7476c86ab0d6ccac5aece392ed4e4fd573e0860 /Makefile.in
parentdc37a8079e4b1a69300a4bf1bdd00f8e2c66e1d5 (diff)
Remove seq.in, in favor of the new function. Remove seq detection from configure.ac. Teach the Makefile how to remove old installed seqs.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in21
1 files changed, 16 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index d0b58f5b..b8942b50 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -204,7 +204,7 @@ MAIN_DIR_FILES_UNSORTED := Doxyfile Doxyfile.user Doxyfile.help \
$(COMMON_FILES) $(COMMON_FILES:.cpp=.h) $(FISH_OBJS:.o=.cpp) \
fish.spec.in INSTALL README user_doc.head.html xsel-0.9.6.tar \
ChangeLog config.sub config.guess fish_tests.cpp fish.cpp fish_pager.cpp \
- fishd.cpp seq.in make_vcs_completions.fish $(FISH_INDENT_OBJS:.o=.cpp)
+ fishd.cpp make_vcs_completions.fish $(FISH_INDENT_OBJS:.o=.cpp)
#
# The sorting is not meaningful in itself, but it has the side effect
@@ -242,7 +242,7 @@ FUNCTIONS_DIR_FILES := $(wildcard share/functions/*.fish)
#
SIMPLE_PROGRAMS := fish set_color mimedb fish_pager fishd fish_indent
-PROGRAMS := $(SIMPLE_PROGRAMS) @XSEL_BIN@ @SEQ_FALLBACK@
+PROGRAMS := $(SIMPLE_PROGRAMS) @XSEL_BIN@
#
@@ -443,10 +443,10 @@ doc.h: $(HDR_FILES)
# Create a template translation object
#
-messages.pot: *.cpp *.h share/completions/*.fish share/functions/*.fish seq
+messages.pot: *.cpp *.h share/completions/*.fish share/functions/*.fish
if test $(HAVE_GETTEXT) = 1;then \
xgettext -k_ -kN_ *.cpp *.h -o messages.pot; \
- if xgettext -j -k_ -kN_ -k--description -LShell share/completions/*.fish share/functions/*.fish seq -o messages.pot; then true; else \
+ if xgettext -j -k_ -kN_ -k--description -LShell share/completions/*.fish share/functions/*.fish -o messages.pot; then true; else \
echo "Your xgettext version is too old to build the messages.pot file"\
rm messages.pot\
false;\
@@ -527,6 +527,17 @@ check-uninstall:
.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
+cleanup_old_seq:
+ SEQLOC=`which seq`;\
+ if test -x "$$SEQLOC" && grep -q '\(^#!/.*/fish\|^#!/usr/bin/env fish\)' "$$SEQLOC"; then\
+ rm -f "$$SEQLOC";\
+ fi;\
+ true;
+.PHONY: cleanup_old_seq
+
#
# This check makes sure that the install-sh script is executable. The
# darcs repo doesn't preserve the executable bit, so this needs to be
@@ -542,7 +553,7 @@ install-sh:
# Try to install after checking for incompatible installed versions.
#
-install: all install-sh check-uninstall install-force
+install: all cleanup_old_seq install-sh check-uninstall install-force
.PHONY: install
#