Mercurial > mxd2map
comparison website/buildhtml.mk @ 195:123ebb293f3a
* website/.htaccess,
website/buildhtml.mk,
website/development-de.htm4,
website/download-de.htm4,
website/index-de.htm4,
website/switch.php: more contetn to the website, added
htaccess-switch to support the german-version only atm.
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Wed, 20 Jul 2011 17:02:50 +0200 |
parents | dd4bb5869f86 |
children | bdf58d5b7d92 |
comparison
equal
deleted
inserted
replaced
194:216105271856 | 195:123ebb293f3a |
---|---|
14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4)) | 14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4)) |
15 SUBDIRS = | 15 SUBDIRS = |
16 | 16 |
17 # Installation configuration | 17 # Installation configuration |
18 INSTALL_DIR = ./mxd2map-www | 18 INSTALL_DIR = ./mxd2map-www |
19 ADD_INST_TYPES = *.css *.php *.png | 19 ADD_INST_TYPES = *.css *.php *.png .htaccess |
20 ADD_INST_DIRS = img | 20 ADD_INST_DIRS = img |
21 | 21 |
22 CURDIR=$(shell pwd) | 22 CURDIR=$(shell pwd) |
23 | 23 |
24 .SUFFIXES: .html .htm4 | 24 .SUFFIXES: .html .htm4 |
37 done | 37 done |
38 | 38 |
39 online: all | 39 online: all |
40 echo "Going to put current contents online for www.mxd2mapp.org ..." | 40 echo "Going to put current contents online for www.mxd2mapp.org ..." |
41 rsync -urvP --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ | 41 rsync -urvP --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ |
42 $(USER)@wald.intevation.org:/mxd2map/htdocs/ | 42 sholl@wald.intevation.org:/mxd2map/htdocs/ |
43 | 43 |
44 install: all | 44 install: all |
45 mkdir -p $(INSTALL_DIR) ;\ | 45 mkdir -p $(INSTALL_DIR) ;\ |
46 cp -uf $(TARGETS) $(INSTALL_DIR) ;\ | 46 cp -uf $(TARGETS) $(INSTALL_DIR) ;\ |
47 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR) | 47 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR) |
49 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf | 49 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf |
50 | 50 |
51 tar: install | 51 tar: install |
52 echo $(CURDIR) | 52 echo $(CURDIR) |
53 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mxd2map.org.tar.gz . ) | 53 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mxd2map.org.tar.gz . ) |
54 | |
55 clean: | |
56 rm -f *.html | |
57 | |
58 clean-en: | |
59 rm -f 404.html about.html contact.html development.html donate.html download.html impressum.html index.html license.html | |
60 |