X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=tools%2Fmise_en_prod.rb;h=95c54296c23ae0d6fa54bd5ddd95b5d24cc16ef3;hp=fa2923f0ae4737787c49e2d041a0ebc311f03c33;hb=f5b818cf316c6ccae89dac192411a4d875a0c6b4;hpb=d7816465f9cd53b0f0f011febe063e78bffe3f9e diff --git a/tools/mise_en_prod.rb b/tools/mise_en_prod.rb index fa2923f..95c5429 100755 --- a/tools/mise_en_prod.rb +++ b/tools/mise_en_prod.rb @@ -1,45 +1,21 @@ -#!/usr/bin/ruby -=begin -Copyright 2008 Grégory Burri +#!/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 - +This file is part of Euphorik. -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 +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. -if __FILE__ == $0 - # la destination - $dest = 'gburri@euphorik.ch:/var/www/euphorik' - $dest = $*[0] if $*.length > 1 +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. - # les options communes - $opt = '' - - copy_files($dest, $opt) -end +You should have received a copy of the GNU General Public License +along with Euphorik. If not, see . +=end + +# TODO : utilisation de tools.rb \ No newline at end of file