blob: 148099df4a2d07a0bcc99d1743f1e4972bd43f94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# FILES=admindbpreamble.html adminsubscribeack.txt adminunsubscribeack.txt admlogin.html approve.txt article.html bounce.txt checkdbs.txt convert.txt cronpass.txt headfoot.html help.txt listinfo.html masthead.txt newlist.txt nopass.txt options.html postack.txt postauth.txt postheld.txt private.html reenable.txt refuse.txt roster.html subauth.txt subscribeack.txt subscribe.html unsub.txt userpass.txt verify.txt
FILES=$(shell cat status | sed -e 's/ .*$$//')
TARGET=/var/home/mailman/templates/ru/
WEB=/var/www/mailman-ru
WFILES_DIR=/var/www/mailman-ru/files
TFILES=$(addprefix $(TARGET),$(FILES))
WFILES=$(addprefix $(WEB),$(FILES))
diff_args=-ub
all:
@echo there is nothing to do
diff-%: %
@-(cd ../en/ ; cvs -z6 diff $(diff_args) -r$(shell fgrep $< status | awk '{ print $$2; }') $<)
check:
@(cd ../en/ ; cvs -z6 -q status ) | ./s2s.py
todo:
@cat status | while read name version status rest; do [ "$$status" == "done" ] || echo $$name; done | sort
done:
@cat status | while read name version status rest; do [ "$$status" == "done" ] && echo $$name; done | sort
started:
@cat status | while read name version status rest; do [ "$$status" == "started" ] && echo $$name; done | sort
status-%: %
@ cat status | grep "^$< "
$(WEB)/%: %
cp $< $@
#update: $(WFILES)
update: update-files update-status
update-files:
install -d $(WFILES_DIR)
@for file in $(FILES); do if [ ! -e $(WFILES_DIR)/$$file -o $$file -nt $(WFILES_DIR)/$$file ]; then cp -vf $$file $(WFILES_DIR)/$$file; fi; done
update-status: $(WEB)/status.html
$(WEB)/status.html: status s2h.py
./s2h.py > $@
install:
sudo -u mailman install -d $(TARGET)
sudo -u mailman install $(FILES) $(TARGET)
|