- use find instead of git ls-files in the event that we are

running from a source tarball.
This commit is contained in:
Jordan Sissel 2012-01-18 22:50:48 -08:00
parent e28fffc097
commit 67653575e9

View file

@ -53,9 +53,9 @@ build/ruby/logstash/runner.class: lib/logstash/runner.rb | build/ruby $(JRUBY)
.PHONY: copy-ruby-files .PHONY: copy-ruby-files
copy-ruby-files: | build/ruby copy-ruby-files: | build/ruby
@# Copy lib/ and test/ files to the root. @# Copy lib/ and test/ files to the root.
$(QUIET)git ls-files | grep '^lib/.*\.rb$$' | sed -e 's,^lib/,,' \ $(QUIET)find ./lib -name '*.rb' | sed -e 's,^lib/,,' \
| (cd lib; cpio -p --make-directories ../build/ruby) | (cd lib; cpio -p --make-directories ../build/ruby)
$(QUIET)git ls-files | grep '^test/.*\.rb$$' | sed -e 's,^test/,,' \ $(QUIET)find ./test -name '*.rb' | sed -e 's,^test/,,' \
| (cd test; cpio -p --make-directories ../build/ruby) | (cd test; cpio -p --make-directories ../build/ruby)
vendor: vendor: