X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=mise_en_prod.rb;fp=mise_en_prod.rb;h=0000000000000000000000000000000000000000;hb=d7816465f9cd53b0f0f011febe063e78bffe3f9e;hp=fa2923f0ae4737787c49e2d041a0ebc311f03c33;hpb=bf439b9e4b45ff729abb4e66a46a93874fa5dfb9;p=euphorik.git diff --git a/mise_en_prod.rb b/mise_en_prod.rb deleted file mode 100755 index fa2923f..0000000 --- a/mise_en_prod.rb +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/ruby -=begin -Copyright 2008 Grégory Burri - -This file is part of Euphorik. - -Euphorik is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -Euphorik is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with Euphorik. If not, see . -=end - - -def copy_files(dest, opt) - `rsync #{opt} index.html #{dest}` - `rsync #{opt} -r css #{dest}` - `rsync #{opt} -r img #{dest}` - #`rsync #{opt} -r js #{dest}` - `rsync #{opt} -r lightbox #{dest}` - `rsync #{opt} -r modules/include #{dest}/modules` - `rsync #{opt} -r modules/ebin #{dest}/modules` - `rsync #{opt} -r pages #{dest}` - - # copie des js avec minification - -end - -if __FILE__ == $0 - # la destination - $dest = 'gburri@euphorik.ch:/var/www/euphorik' - $dest = $*[0] if $*.length > 1 - - # les options communes - $opt = '' - - copy_files($dest, $opt) -end