X-Git-Url: http://git.euphorik.ch/?p=pompage.git;a=blobdiff_plain;f=mise_en_prod.rb;h=9b4d23e7b8c6ba878c3bd71218f952306167458f;hp=88305865af66235fbb6b0f18336669f7b549c7f4;hb=e4a433cf5e1b42635a8b11877d67a08dcf6bf3fe;hpb=e9fd5c2bdeb9b348717b34d5dc6fad78da86130d diff --git a/mise_en_prod.rb b/mise_en_prod.rb index 8830586..9b4d23e 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'].each{|rep| `mkdir #{dest}\\#{rep}` - `xcopy /Y #{rep} #{dest}\\#{rep}` + `xcopy /Y /F #{rep} #{dest}\\#{rep}` } \ No newline at end of file