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 Mail-Archive/ --exclude Infodrom/mailstats/
17 FILES+= --include "*/"
18 FILES+= --include "*.html" --include "*.shtml" --include "*.php3" --include "*.txt" --include "*.ps"
19 FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
26 test -d $(TEST) || mkdir -p $(TEST)
27 rsync -lptr $(FILES) src/ $(TEST)/
28 # cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
33 test -d $(DEST) || mkdir -p $(DEST)
34 rsync -lptr $(FILES) src/ $(DEST)/
35 rsync src/index.php3 /var/www/lists.infodrom.org/index.php3
37 # cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
38 ifeq ($(hostname),finlandia)
39 -cp src/imgdot-1x1-transp-ffffff.gif $(DEST)/gifs/imgdot-1x1-transp.gif
43 -rm -f `find -name '*~'` `find -name '.?*.swp'`