From: Greg Burri Date: Tue, 13 May 2008 11:55:21 +0000 (+0000) Subject: MOD déplacement de mise_en_prod.rb X-Git-Tag: 1.0.0^2~78 X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=d7816465f9cd53b0f0f011febe063e78bffe3f9e;p=euphorik.git MOD déplacement de mise_en_prod.rb --- 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 diff --git a/tools/mise_en_prod.rb b/tools/mise_en_prod.rb new file mode 100755 index 0000000..fa2923f --- /dev/null +++ b/tools/mise_en_prod.rb @@ -0,0 +1,45 @@ +#!/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