X-Git-Url: http://git.euphorik.ch/?p=pompage.git;a=blobdiff_plain;f=mise_en_prod.rb;fp=mise_en_prod.rb;h=473156b414ec4d04f787017cb915fa05d0dd3870;hp=88305865af66235fbb6b0f18336669f7b549c7f4;hb=6a3e9e285bd76141ce1475f3ecc0c3f220a5c968;hpb=c8dde685f324d22c9516211979d688b3a7530558 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