diff options
| author | Igor Minar | 2011-06-07 12:53:40 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-06-07 14:56:01 -0700 |
| commit | 25b3438fd78184cbbc420e2e051888f4f192a68a (patch) | |
| tree | 8b63995fe08546348661f3704ded38305fd7ab9c /Rakefile | |
| parent | f21b9214e657d41e20fb761948b05fc2c7c7f5a3 (diff) | |
| download | angular.js-25b3438fd78184cbbc420e2e051888f4f192a68a.tar.bz2 | |
add appcache for docs site - caches only css/js/img resources
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -241,6 +241,13 @@ task :package => [:clean, :compile, :docs] do f.write text.sub('angular-scenario.js', "angular-scenario-#{version}.js") end + File.open("#{pkg_dir}/docs-#{version}/app-cache.manifest", File::RDWR) do |f| + text = f.read + f.rewind + f.write text.sub('angular.min.js', "angular-#{version}.min.js") + end + + %x(tar -czf #{path_to(tarball)} -C #{path_to('pkg')} .) puts "Package created: #{path_to(tarball)}" |
