X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=mise_en_prod.rb;h=b58a77b02afdc93c1f1edeb39512419b641d929d;hb=69ff07a1d3283f382e5c908045885ee5af4b7eb1;hp=9b4d23e7b8c6ba878c3bd71218f952306167458f;hpb=758f0146355cf0b6c0745d1e73c94c060fc6405c;p=pompage.git diff --git a/mise_en_prod.rb b/mise_en_prod.rb index 9b4d23e..b58a77b 100644 --- a/mise_en_prod.rb +++ b/mise_en_prod.rb @@ -1,14 +1,15 @@ -dest = "Z:\\var\\www\\divx" - -#if $*.length < 1 -# puts 'Usage: mise_en_prod.rb destination' -# exit 1 -#end - -dest = $*[0] if $*.length > 1 - -# pour windows -['xml', 'xsl', 'js', 'css', 'img'].each{|rep| - `mkdir #{dest}\\#{rep}` - `xcopy /Y /F #{rep} #{dest}\\#{rep}` -} \ No newline at end of file +#!/usr/bin/ruby + +# la destination +$dest = 'gburri@euphorik.ch:web/divx' +$dest = $*[0] if $*.length > 1 + +# les options communes +$opt = '' + +`rsync $opt css/yopyop.css #{$dest}/css` +`rsync $opt -r img/* #{$dest}/img` +`rsync $opt js/yopyop.js #{$dest}/js` +`rsync $opt xml/divx.xml #{$dest}/xml` +`rsync $opt xpi/divxlist.xpi #{$dest}/xpi` +`rsync $opt xsl/yopyop.xsl #{$dest}/xsl`