X-Git-Url: http://git.euphorik.ch/?p=pompage.git;a=blobdiff_plain;f=mise_en_prod.rb;h=cda6118fd2bdc611aaec9dc913a5185201e84154;hp=88305865af66235fbb6b0f18336669f7b549c7f4;hb=3c0d34648b6522fcd86baa485bf6008ba805f7a3;hpb=e9fd5c2bdeb9b348717b34d5dc6fad78da86130d diff --git a/mise_en_prod.rb b/mise_en_prod.rb index 8830586..cda6118 100644 --- a/mise_en_prod.rb +++ b/mise_en_prod.rb @@ -1,12 +1,12 @@ -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 -# pour windows -['xml', 'xsl', 'js', 'css'].each{|rep| - `mkdir #{dest}\\#{rep}` - `xcopy /Y #{rep} #{dest}\\#{rep}` -} \ No newline at end of file +dest = $*[0] if $*.length > 1 + +['xml', 'xsl', 'js', 'css', 'img', 'xpi'].each{|rep| + `cp -Ru #{rep} #{dest}` +}