3 def copy_files(dest
, opt
)
4 p
"rsync #{opt} index.html #{dest}"
5 `rsync #{opt} index.html #{dest}`
6 `rsync #{opt} -r css #{dest}`
7 `rsync #{opt} -r img #{dest}`
8 `rsync #{opt} -r js #{dest}`
9 `rsync #{opt} -r lightbox #{dest}`
10 `rsync #{opt} -r modules/include #{dest}/modules`
11 `rsync #{opt} -r modules/ebin #{dest}/modules`
12 `rsync #{opt} -r pages #{dest}`
17 $dest = 'gburri@euphorik.ch:/var/www/euphorik'
18 $dest = $
*[0] if $
*.length
> 1
20 # les options communes
23 copy_files($dest, $opt)