X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=mise_en_prod.rb;h=cda6118fd2bdc611aaec9dc913a5185201e84154;hb=c71711f75c023e33eabc4d020d2884207d0ca801;hp=88305865af66235fbb6b0f18336669f7b549c7f4;hpb=e9fd5c2bdeb9b348717b34d5dc6fad78da86130d;p=pompage.git 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}` +}