Procházet zdrojové kódy

Execute commands properly. You can see what's happening, and errors halt the build

tags/0.3.0
Jason Smith před 16 roky
rodič
revize
f54312e879
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. +7
    -7
      Rakefile

+ 7
- 7
Rakefile Zobrazit soubor

@@ -16,7 +16,7 @@ task :commonjs do
puts "Packaging for CommonJS" puts "Packaging for CommonJS"
source = "mustache-commonjs" source = "mustache-commonjs"
target_jq = "commonjs.mustache.js" target_jq = "commonjs.mustache.js"
`cat #{source}/#{target_jq}.tpl.pre mustache.js #{source}/#{target_jq}.tpl.post > #{target_jq}`
sh "cat #{source}/#{target_jq}.tpl.pre mustache.js #{source}/#{target_jq}.tpl.post > #{target_jq}"
puts "Done." puts "Done."
end end


@@ -25,7 +25,7 @@ task :jquery do
puts "Packaging for jQuery" puts "Packaging for jQuery"
source = "mustache-jquery" source = "mustache-jquery"
target_jq = "jquery.mustache.js" target_jq = "jquery.mustache.js"
`cat #{source}/#{target_jq}.tpl.pre mustache.js #{source}/#{target_jq}.tpl.post > #{target_jq}`
sh "cat #{source}/#{target_jq}.tpl.pre mustache.js #{source}/#{target_jq}.tpl.post > #{target_jq}"
puts "Done, see ./#{target_jq}" puts "Done, see ./#{target_jq}"
end end


@@ -34,8 +34,8 @@ task :dojo do
puts "Packaging for dojo" puts "Packaging for dojo"
source = "mustache-dojo" source = "mustache-dojo"
target_js = "mustache.js" target_js = "mustache.js"
`mkdir -p dojox; mkdir -p dojox/string`
`cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > dojox/string/#{target_js}`
sh "mkdir -p dojox; mkdir -p dojox/string"
sh "cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > dojox/string/#{target_js}"
puts "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); " puts "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); "
end end


@@ -44,12 +44,12 @@ task :yui3 do
puts "Packaging for YUI3" puts "Packaging for YUI3"
source = "mustache-yui3" source = "mustache-yui3"
target_js = "mustache.js" target_js = "mustache.js"
`mkdir -p yui3; mkdir -p yui3/mustache`
`cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > yui3/mustache/#{target_js}`
sh "kdir -p yui3; mkdir -p yui3/mustache"
sh "cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > yui3/mustache/#{target_js}"
puts "Done, see ./yui3/mustache/#{target_js}" puts "Done, see ./yui3/mustache/#{target_js}"
end end


desc "Remove temporary files." desc "Remove temporary files."
task :clean do task :clean do
`git clean -fdx`
sh "git clean -fdx"
end end

Načítá se…
Zrušit
Uložit