Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: grep-explorer
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (39 sloc) 1.564 kb
# Copyright (C) 2007-2010 Stephen Bach
# Permission is hereby granted to use and distribute this code, with or without
# modifications, provided that this copyright notice is copied with it. Like
# anything else that's free, this file is provided *as is* and comes with no
# warranty of any kind, either expressed or implied. In no event will the
# copyright holder be liable for any damages resulting from the use of this
# software.
VIM_FILE = src/plugin.vim
#RUBY_FILES = $(shell find src/ -type f -name '*.rb')
# Order matters.
RUBY_FILES = src/vim.rb \
src/lusty.rb \
src/liquid-metal.rb \
src/lusty/entry.rb \
src/lusty/explorer.rb \
src/lusty/buffer-explorer.rb \
src/lusty/filesystem-explorer.rb \
src/lusty/grep-explorer.rb \
src/lusty/prompt.rb \
src/lusty/window.rb \
src/lusty/saved-settings.rb \
src/lusty/displayer.rb \
src/lusty/file-masks.rb \
# Concatenate the Ruby files, removing redundant copyrights, and insert
# the result into the vimscript file.
lusty-explorer.vim: $(VIM_FILE) $(RUBY_FILES)
for file in $(RUBY_FILES); do \
cat $$file | sed '1,/^$$/d' ;\
echo ; \
done > ruby-content.tmp
( sed '/{{RUBY_CODE_INSERTION_POINT}}/,$$d' $(VIM_FILE) ; \
cat ruby-content.tmp ; \
sed '1,/{{RUBY_CODE_INSERTION_POINT}}/d' $(VIM_FILE) ) > \
rm -f ruby-content.tmp
rm -f ruby-content.tmp lusty-explorer.vim
Jump to Line
Something went wrong with that request. Please try again.