Navigation Menu

Skip to content

Commit

Permalink
Don't add needless files into archive
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 28, 2015
1 parent 5324725 commit d3c4ba9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -33,7 +33,9 @@ version = find_version(package)
archive_base_name = "#{package}-#{version}"
archive_name = "#{archive_base_name}.tar.gz"

dist_files = `git ls-files`.split("\n")
dist_files = `git ls-files`.split("\n").reject do |file|
file.start_with?("packages/")
end

file archive_name => dist_files do
sh("git archive --prefix=#{archive_base_name}/ --format=tar HEAD | " +
Expand Down

0 comments on commit d3c4ba9

Please sign in to comment.