Mercurial > mxd2map
comparison buildhtml.mk @ 156:67d395ac5509
updated buildhtml to hg.
author | Emanuel Schuetze <emanuel@intevation.de> |
---|---|
date | Wed, 30 Mar 2011 16:11:28 +0200 |
parents | 5a882b5773c9 |
children |
comparison
equal
deleted
inserted
replaced
155:5a882b5773c9 | 156:67d395ac5509 |
---|---|
9 # Preprocessor configuration | 9 # Preprocessor configuration |
10 PP = m4 | 10 PP = m4 |
11 PPFLAGS = --prefix-builtins | 11 PPFLAGS = --prefix-builtins |
12 | 12 |
13 # Build configuration | 13 # Build configuration |
14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4)) change-history.html change-history-de.html | 14 TARGETS = $(patsubst %.htm4,%.html,$(wildcard *.htm4)) |
15 SUBDIRS = | 15 SUBDIRS = |
16 | 16 |
17 # Installation configuration | 17 # Installation configuration |
18 INSTALL_DIR = /tmp/mapwoc-www | 18 INSTALL_DIR = /tmp/mapwoc-www |
19 ADD_INST_TYPES = *.css *.php *.png | 19 ADD_INST_TYPES = *.css *.php *.png |
20 ADD_INST_DIRS = img | 20 ADD_INST_DIRS = img |
21 | |
22 #USER=$(shell grep "svn+ssh://" .svn/entries | sed -e "s/.*svn+ssh:\/\///g" | sed -e "s/@.*//g" | head -1) | |
23 | 21 |
24 CURDIR=$(shell pwd) | 22 CURDIR=$(shell pwd) |
25 | 23 |
26 .SUFFIXES: .html .htm4 | 24 .SUFFIXES: .html .htm4 |
27 | 25 |
38 $(MAKE) -C $$dir SUBDIRS="" ; \ | 36 $(MAKE) -C $$dir SUBDIRS="" ; \ |
39 done | 37 done |
40 | 38 |
41 online: all | 39 online: all |
42 echo "Going to put current contents online for www.mapwocp.org ..." | 40 echo "Going to put current contents online for www.mapwocp.org ..." |
43 rsync -urvP --exclude='.svn' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ | 41 rsync -urvP --exclude='.hg' $(ADD_INST_TYPES) $(TARGETS) $(ADD_INST_DIRS) \ |
44 $(USER)@wald.intevation.org:/mapwoc/htdocs/ | 42 $(USER)@wald.intevation.org:/mapwoc/htdocs/ |
45 | 43 |
46 install: all | 44 install: all |
47 mkdir -p $(INSTALL_DIR) ;\ | 45 mkdir -p $(INSTALL_DIR) ;\ |
48 cp -uf $(TARGETS) $(INSTALL_DIR) ;\ | 46 cp -uf $(TARGETS) $(INSTALL_DIR) ;\ |
49 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR) | 47 cp -uf $(ADD_INST_TYPES) $(INSTALL_DIR) |
50 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR) | 48 cp -urf *$(ADD_INST_DIRS) $(INSTALL_DIR) |
51 find $(INSTALL_DIR) -name ".svn" | xargs rm -rf | 49 find $(INSTALL_DIR) -name ".hg" | xargs rm -rf |
52 | 50 |
53 tar: install | 51 tar: install |
54 echo $(CURDIR) | 52 echo $(CURDIR) |
55 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mapwoc.org.tar.gz . ) | 53 ( cd $(INSTALL_DIR) ; tar -czv -f $(CURDIR)/www.mapwoc.org.tar.gz . ) |