1 hostname=$(shell hostname)
3 ifeq ($(hostname),finlandia)
4 DEST = $(HOME)/public_html/new/lists
5 TEST = $(HOME)/public_html/new/lists
7 ifeq ($(hostname),luonnotar)
8 DEST = /var/www/lists.infodrom.org
9 TEST = $(HOME)/luonnotar_html/new/lists
13 FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif"
14 ifeq ($(hostname),luonnotar)
15 FILES+= --exclude stats/
17 FILES+= --include "*/"
18 FILES+= --include "*.html" --include "*.shtml" --include "*.php3" --include "*.txt" --include "*.ps"
19 FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
20 FILES+= --include "infodrom.css"
21 FILES+= --include "favicon.ico"
28 test -d $(TEST) || mkdir -p $(TEST)
29 rsync -lptr $(FILES) src/ $(TEST)/
30 # cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
35 test -d $(DEST) || mkdir -p $(DEST)
36 rsync -lptr $(FILES) src/ $(DEST)/
37 rsync src/index.php3 /var/www/lists.infodrom.org/index.php3
38 rsync src/stats/*.php3 /var/www/lists.infodrom.org/stats/
40 # cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
41 ifeq ($(hostname),finlandia)
42 -cp src/imgdot-1x1-transp-ffffff.gif $(DEST)/gifs/imgdot-1x1-transp.gif
46 -rm -f `find -name '*~'` `find -name '.?*.swp'`