aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorIgor Minar2011-06-30 10:58:09 -0700
committerIgor Minar2011-06-30 10:58:14 -0700
commit6dc22fe57529387b1a66b42193670bf6d6685675 (patch)
treece09cd94f9555fdaf8bdc955b18eb4d65f64ddad /Rakefile
parent68ab0f9b02372d11d31412edce86080eaa43625b (diff)
downloadangular.js-6dc22fe57529387b1a66b42193670bf6d6685675.tar.bz2
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
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index c8ba1418..e00536f7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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