feat:build: better build/pkg/ dir structure

rake package now produced directory structure that can be uploaded to
the ftp server as is without manual changes
This commit is contained in:
Igor Minar 2011-06-30 10:58:09 -07:00
parent 68ab0f9b02
commit 6dc22fe575

View file

@ -250,6 +250,9 @@ task :package => [:clean, :compile, :docs] do
%x(tar -czf #{path_to(tarball)} -C #{path_to('pkg')} .)
FileUtils.cp path_to(tarball), pkg_dir
FileUtils.mv pkg_dir, path_to(['pkg', version])
puts "Package created: #{path_to(tarball)}"
end