Permalink
Browse files

fixed baking

  • Loading branch information...
1 parent e2894db commit 84c7007265fa67cac478c6bf1bca745bbb4ddf6c @darwin committed Jan 30, 2009
Showing with 12 additions and 6 deletions.
  1. +4 −2 lib/pbdev/engine.rb
  2. +4 −2 lib/pbdev/front.rb
  3. +4 −2 lib/pbdev/system.rb
View
@@ -6,10 +6,12 @@ def postprocess(dir)
url = @url+"/"+@version
tempdir = File.join(dir, ".temp")
wc = EngineCheckout.new(@mode, @kind, dir, tempdir, url)
- filename = wc.serve("pagebout.js")
+ js = wc.serve("pagebout.js")
+ css = wc.serve("pagebout.css")
remove_intermediate(dir)
Dir.chdir(dir) do
- `mv "#{filename}" pagebout.js`
+ `mv "#{js}" pagebout.js`
+ `mv "#{css}" pagebout.css`
`rm -rf .temp`
end
dir
View
@@ -5,10 +5,12 @@ def postprocess(dir)
url = @url+"/"+@version
tempdir = File.join(dir, ".temp")
wc = FrontCheckout.new(@mode, @kind, dir, tempdir, url)
- filename = wc.serve("front.js")
+ js = wc.serve("front.js")
+ css = wc.serve("front.css")
remove_intermediate(dir)
Dir.chdir(dir) do
- `mv "#{filename}" front.js`
+ `mv "#{js}" front.js`
+ `mv "#{css}" front.css`
`rm -rf .temp`
end
dir
View
@@ -5,10 +5,12 @@ def postprocess(dir)
url = @url+"/"+@version
tempdir = File.join(dir, ".temp")
wc = SystemCheckout.new(@mode, @kind, dir, tempdir, url)
- filename = wc.serve("system.js")
+ js = wc.serve("system.js")
+ css = wc.serve("system.css")
remove_intermediate(dir)
Dir.chdir(dir) do
- `mv "#{filename}" system.js`
+ `mv "#{js}" system.js`
+ `mv "#{css}" system.css`
`rm -rf .temp`
end
dir

0 comments on commit 84c7007

Please sign in to comment.