-#!/usr/bin/ruby\r
-=begin\r
-Copyright 2008 Grégory Burri\r
-
-This file is part of Euphorik.\r
-\r
-Euphorik is free software: you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation, either version 3 of the License, or\r
-(at your option) any later version.\r
-\r
-Euphorik is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with Euphorik. If not, see <http://www.gnu.org/licenses/>.\r
-=end\r
-\r
-
-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}`\r
- \r
- # copie des js avec minification\r
-
-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