X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=mise_en_prod.rb;h=a6b804cc450d7bae44bc1062b139b722a025c66e;hb=84fd971104c7cc367ecca4b7ae7073fb7a7e5a7a;hp=88305865af66235fbb6b0f18336669f7b549c7f4;hpb=e9fd5c2bdeb9b348717b34d5dc6fad78da86130d;p=pompage.git diff --git a/mise_en_prod.rb b/mise_en_prod.rb index 8830586..a6b804c 100644 --- a/mise_en_prod.rb +++ b/mise_en_prod.rb @@ -1,12 +1,14 @@ -if $*.length < 1 - puts 'Usage: mise_en_prod.rb destination' - exit 1 -end +dest = "Z:\\var\\www\\divx" -dest = $*[0] +#if $*.length < 1 +# puts 'Usage: mise_en_prod.rb destination' +# exit 1 +#end + +dest = $*[0] if $*.length > 1 # pour windows -['xml', 'xsl', 'js', 'css'].each{|rep| +['xml', 'xsl', 'js', 'css', 'img', 'xpi'].each{|rep| `mkdir #{dest}\\#{rep}` - `xcopy /Y #{rep} #{dest}\\#{rep}` -} \ No newline at end of file + `xcopy /Y /F #{rep} #{dest}\\#{rep}` +}