Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 84 lines (72 sloc) 2.964 kb
3572b5d @sjbach Remove date ranges from copyrights.
authored
1 # Copyright (C) 2007 Stephen Bach
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
2 #
3 # Permission is hereby granted to use and distribute this code, with or without
4 # modifications, provided that this copyright notice is copied with it. Like
5 # anything else that's free, this file is provided *as is* and comes with no
6 # warranty of any kind, either expressed or implied. In no event will the
7 # copyright holder be liable for any damages resulting from the use of this
8 # software.
9
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
10 EXPLORER_VIM_FILE = src/explorer.vim
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
11
12 # Order matters.
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
13 EXPLORER_RUBY_FILES = src/vim.rb \
14 src/lusty.rb \
d6142db @vatic42 New fuzzy matching algorithm: Mercury.
vatic42 authored
15 src/mercury.rb \
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
16 src/lusty/entry.rb \
17 src/lusty/explorer.rb \
18 src/lusty/buffer-explorer.rb \
19 src/lusty/filesystem-explorer.rb \
838724b @sjbach grep-explorer.rb -> buffer-grep.rb
authored
20 src/lusty/buffer-grep.rb \
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
21 src/lusty/prompt.rb \
22 src/lusty/window.rb \
23 src/lusty/saved-settings.rb \
24 src/lusty/display.rb \
25 src/lusty/file-masks.rb \
49efbf3 @sjbach Buffer explorer: secondary sort by MRU
authored
26 src/lusty/vim-swaps.rb \
27 src/lusty/buffer-stack.rb
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
28
29 JUGGLER_VIM_FILE = src/juggler.vim
30
31 # Order matters.
32 JUGGLER_RUBY_FILES = src/vim.rb \
33 src/lusty.rb \
34 src/lusty/juggler.rb \
35 src/lusty/bar-item.rb \
36 src/lusty/name-bar.rb \
37 src/lusty/buffer-stack.rb
38
069d21f @sjbach Add pathogen compatibility
authored
39 all: plugin/lusty-explorer.vim plugin/lusty-juggler.vim
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
40
d6142db @vatic42 New fuzzy matching algorithm: Mercury.
vatic42 authored
41 UNAME := $(shell uname)
42
43 # OS X's sed doesn't have \< or \b for word boundaries.
44 ifeq ($(UNAME), Darwin)
45 LEFT_BOUND = [[:<:]]
46 RIGHT_BOUND = [[:>:]]
47 else
48 LEFT_BOUND = \<
49 RIGHT_BOUND = \>
50 endif
51
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
52 # Concatenate the Ruby files, removing redundant copyrights, and insert
e260539 @sjbach Lusty:: -> LustyM::
authored
53 # the results into the vimscript files. Change LustyM module references to
54 # LustyE or LustyJ, so that using out-of-sync versions of lusty-explorer and
55 # lusty-juggler is less likely to cause monkey patching issues.
56
069d21f @sjbach Add pathogen compatibility
authored
57 plugin/lusty-explorer.vim: $(EXPLORER_VIM_FILE) $(EXPLORER_RUBY_FILES)
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
58 for file in $(EXPLORER_RUBY_FILES); do \
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
59 cat $$file | sed '1,/^$$/d' ;\
60 echo ; \
d6142db @vatic42 New fuzzy matching algorithm: Mercury.
vatic42 authored
61 done | sed 's/$(LEFT_BOUND)LustyM$(RIGHT_BOUND)/LustyE/g' > \
62 ruby-content.tmp
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
63 ( sed '/{{RUBY_CODE_INSERTION_POINT}}/,$$d' $(EXPLORER_VIM_FILE) ; \
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
64 cat ruby-content.tmp ; \
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
65 sed '1,/{{RUBY_CODE_INSERTION_POINT}}/d' $(EXPLORER_VIM_FILE) ) > \
069d21f @sjbach Add pathogen compatibility
authored
66 plugin/lusty-explorer.vim
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
67 rm -f ruby-content.tmp
68
069d21f @sjbach Add pathogen compatibility
authored
69 plugin/lusty-juggler.vim: $(JUGGLER_VIM_FILE) $(JUGGLER_RUBY_FILES)
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
70 for file in $(JUGGLER_RUBY_FILES); do \
71 cat $$file | sed '1,/^$$/d' ;\
72 echo ; \
d6142db @vatic42 New fuzzy matching algorithm: Mercury.
vatic42 authored
73 done | sed 's/$(LEFT_BOUND)LustyM$(RIGHT_BOUND)/LustyJ/g' > \
74 ruby-content.tmp
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
75 ( sed '/{{RUBY_CODE_INSERTION_POINT}}/,$$d' $(JUGGLER_VIM_FILE) ; \
76 cat ruby-content.tmp ; \
77 sed '1,/{{RUBY_CODE_INSERTION_POINT}}/d' $(JUGGLER_VIM_FILE) ) > \
069d21f @sjbach Add pathogen compatibility
authored
78 plugin/lusty-juggler.vim
c9ee284 @sjbach Split lusty-juggler.vim into sub-files
authored
79 rm -f ruby-content.tmp
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
80 clean:
069d21f @sjbach Add pathogen compatibility
authored
81 rm -f ruby-content.tmp plugin/lusty-explorer.vim \
82 plugin/lusty-juggler.vim
7662f75 @sjbach Split lusty-explorer.vim into sub-files
authored
83
Something went wrong with that request. Please try again.