Skip to content

Commit

Permalink
Install the plugin's whole directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jhs committed Dec 8, 2010
1 parent cefbb66 commit 5a03a10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/couchdb.rake
Expand Up @@ -144,10 +144,11 @@ namespace :couchdb do
target = plugin_mark + '_new'
FileUtils.mkdir_p(target)

copy_parts :source => ".", :target => target, :dirs => %w[ ebin priv ]

# Manually copy "build/" to support GeoCouch.
cp = (DISTRO[0] == :solaris) ? 'cp' : 'cp -v'
%w[ build ebin ].each do |ebin|
sh "#{cp} -r #{ebin}/* '#{target}'" if File.directory?(ebin)
end
sh "#{cp} -r build/* '#{target}'" if File.directory?('build')

sh "mv #{target} #{plugin_mark}"

Expand Down

0 comments on commit 5a03a10

Please sign in to comment.