1 hostname=$(shell hostname)
3 ifeq ($(hostname),finlandia)
4 DEST = $(HOME)/public_html/new/service
6 ifeq ($(hostname),luonnotar)
7 DEST = /var/www/service.infodrom.org
9 ifeq ($(hostname),kyllikki)
10 DEST = $(HOME)/public_html/new/service
15 FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp.gif" --include "*/"
16 FILES+= --include "*.html" --include "*.shtml" --include "*.php"
17 FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
18 FILES+= --include "*.js"
19 FILES+= --include infodrom.css
20 FILES+= --include favicon.ico
21 ifeq ($(hostname),luonnotar)
22 FILES+= --include .htaccess
23 FILES+= --exclude Infodrom/webstats/
30 ifeq ($(hostname),finlandia)
32 test -d $(DEST) || mkdir -p $(DEST)
33 rsync -lptr $(FILES) src/ $(DEST)/
34 # cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
38 # for f in src/index.*.php; do \
39 # sed '1,/width="40"/ s/width="40"/width="250"/' < $$f > tmp; \
41 # sed '1,/width="40"/ s/width="40"/width="400"/' < $$f > tmp; \
46 test -d $(DEST) || mkdir -p $(DEST)
47 rsync -lptr $(FILES) src/ $(DEST)/
48 # cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
49 test -L /var/www/service.infodrom.org/Infodrom/stats/mailgraph.cgi || \
50 ln -s /usr/lib/cgi-bin/mailgraph.cgi \
51 /var/www/service.infodrom.org/Infodrom/stats/mailgraph.cgi
54 -rm -f `find -name '*~'` `find -name '.?*.swp'`