MOD correction de bugs (youpi)
[euphorik.git] / mise_en_prod.rb
1 #!/usr/bin/ruby
2
3 def copy_files(dest, opt)
4 `rsync #{opt} index.html #{dest}`
5 `rsync #{opt} -r css #{dest}`
6 `rsync #{opt} -r img #{dest}`
7 #`rsync #{opt} -r js #{dest}`
8 `rsync #{opt} -r lightbox #{dest}`
9 `rsync #{opt} -r modules/include #{dest}/modules`
10 `rsync #{opt} -r modules/ebin #{dest}/modules`
11 `rsync #{opt} -r pages #{dest}`
12
13 # copie des js avec minification
14
15 end
16
17 if __FILE__ == $0
18 # la destination
19 $dest = 'gburri@euphorik.ch:/var/www/euphorik'
20 $dest = $*[0] if $*.length > 1
21
22 # les options communes
23 $opt = ''
24
25 copy_files($dest, $opt)
26 end