X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=mise_en_prod.rb;h=473156b414ec4d04f787017cb915fa05d0dd3870;hb=5994f8f0dab3e0f66bd8107536e9cbccd208be40;hp=88305865af66235fbb6b0f18336669f7b549c7f4;hpb=e9fd5c2bdeb9b348717b34d5dc6fad78da86130d;p=pompage.git diff --git a/mise_en_prod.rb b/mise_en_prod.rb index 8830586..473156b 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}` } \ No newline at end of file