X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=mise_en_prod.rb;h=fa2923f0ae4737787c49e2d041a0ebc311f03c33;hp=5c5a8f773d290eb24aa9d4a436229e17cb0de555;hb=refs%2Fheads%2F0.9;hpb=13ea96f3600d1c42b22b6ea91dc75055555f72b7 diff --git a/mise_en_prod.rb b/mise_en_prod.rb index 5c5a8f7..fa2923f 100755 --- a/mise_en_prod.rb +++ b/mise_en_prod.rb @@ -1,15 +1,36 @@ -#!/usr/bin/ruby +#!/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) - p "rsync #{opt} index.html #{dest}" `rsync #{opt} index.html #{dest}` `rsync #{opt} -r css #{dest}` `rsync #{opt} -r img #{dest}` - `rsync #{opt} -r js #{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}` + `rsync #{opt} -r pages #{dest}` + + # copie des js avec minification + end if __FILE__ == $0