blob: dbf7c3df380108bd9360b802b527b9238e92bf35 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
#
# $FML: Makefile,v 1.83 2006/03/08 13:28:54 fukachan Exp $
#
TMPFILE = /tmp/log.fml-devel.test
all: link
clean:
@ (cd ../..; find fml regress |grep '~' |perl -nple unlink)
allclean: clean clean_link
rm -f __scan__
clean_link:
for file in * ; do test -h $$file && rm -f $$file || true ; done
scan:
@ (cd ../..; make scan 2>&1) |tee __scan__ || echo 'nothing changed'
@ cp __scan__ /tmp/fmlsrc.__scan__
update:
@ (cd ../..; make update)
check:
- test -f 33_TODO && mv -f 33_TODO 33_TODO.bak
@ echo " *********** 00_MEMO ********** " >> 33_TODO
- grep '^\[TODO' 00_MEMO >> 33_TODO
@ echo "" >> 33_TODO
@ make _doc_todo |tee -a 33_TODO
@ echo "" >> 33_TODO
@ echo " *********** PERL SYNTAX CHECKS ********** " >> 33_TODO
- (cd ../../fml; make check 2>&1 |\
grep -v 'syntax OK' |\
tee -a ../regress/simulation/33_TODO) |\
grep -v OK || echo ''
@ echo "" >> 33_TODO
@ echo " *********** CHECK VARIABLE DEFINITIONS ********** " >> 33_TODO
@ ../variable/diff.pl >> 33_TODO
@ echo "" >> 33_TODO
@ echo " *********** STATUS.txt ********** " >> 33_TODO
@ echo "" >> 33_TODO
- egrep '^[0-9]|\[TODO\]' ../../fml/doc/ja/todo/STATUS.txt >> 33_TODO
@ echo "" >> 33_TODO
@ echo " *********** XXX-TODO ********** " >> 33_TODO
@ echo "" >> 33_TODO
- ./.gen_todo.pl \
`find lib/ -type f -print |\
egrep '\.pm$$' ` |\
sed -e 's@^lib//@@' -e 's@^lib/@@' |\
tee -a 33_TODO
- test -f 44_STYLE && mv -f 44_STYLE 44_STYLE.bak
- ../style/find_bad_style.pl \
`find lib/ -type f -print |\
egrep '\.pm$$' ` |\
sed -e 's@^lib//@@' -e 's@^lib/@@' |\
tee 44_STYLE
@ echo "-- check messages"
@ (cd ../../fml/share/message; sh .diag.sh ) >> 33_TODO
@ echo "-- check tutorial"
@ make _doc_check |tee -a 33_TODO
@ echo "-- clean up."
- test -s 33_TODO || rm -f 33_TODO
- test -s 44_STYLE || rm -f 44_STYLE
@ echo ""; echo "-- summary"; echo "";
@ echo -n "TODO: ";
@ grep TODO 33_TODO| wc -l
link: clean_link _link
_link:
ln -s ../../fml/doc/ja ja-doc
ln -s ../../fml/doc/en en-doc
ln -s ../../fml/etc
ln -s ../../fml/lib
ln -s ../../fml/lib/FML
ln -s ../../fml/lib/FML/Filter
ln -s ../../fml/lib/FML/CGI
ln -s ../../fml/lib/FML/ML
ln -s ../../fml/lib/FML/Merge/FML4 Merge
ln -s ../../fml/lib/FML/Process
ln -s ../../fml/lib/FML/Command Command
ln -s ../../fml/lib/FML/Command/Admin AdminCommand
ln -s ../../fml/lib/FML/Command/User UserCommand
ln -s ../../fml/lib/FML/MTA/Control MTAControl
ln -s ../../fml/lib/IO
ln -s ../../fml/lib/Tie
ln -s ../../fml/lib/Mail
ln -s ../../fml/libexec
ln -s /var/spool/ml/elena/log
ln -s ../../cpan/doc doc-devel
ln -s ../../fml/doc/ja/tutorial tutorial
ln -s ../../fml/doc/ja/todo TODO
ln -s ../../fml/doc/ja/recipes recipies
ln -s ../../fml/share/message/euc-jp message-euc-jp
diff:
@ git diff -u -b
test:
@ make _test 2>&1 | tee $(TMPFILE)
@ echo ""; echo "--- summary ---"; echo "";
@ egrep '\* |fail *$$' $(TMPFILE) |\
sed 's|text=empty fail|text=empty fail (ok)|' || echo ''
@ rm -f $(TMPFILE)
_test:
@ echo "* IO::Adapter module test"
@ for x in IO/t/*pl; do perl -I ../lib -I . $$x; done
@ echo "* base"
@ test -d /tmp/fml5 || mkdir /tmp/fml5
@ make -f ../base/Makefile
@ echo "* cf"
@ (cd ../cf; make test)
@ echo "* errormails"
@ (cd ../errormails; make check)
diag:
env PATH=/usr/pkg/bin:$$PATH make check
depend:
perl ../style/listup_dependence.pl `find lib/ -type f |grep pm` |\
tee 55_DEPEND.bak
#
# re-generate files for fml/etc/ and fml/doc/
#
LIST_TARGET = ../../fml/doc/share/config/list_makefml_command.txt
regen: regen_default_config_cf regen_command_list _doc_tutorial
regen_default_config_cf:
(cd ../../fml/etc; make )
regen_command_list: $(LIST_TARGET)
$(LIST_TARGET): ../../fml/etc/src/config.cf.ja/command.cf
sh ../../fml/utils/bin/listup_commnads.sh
_doc_tutorial:
(cd ../../fml/doc/ja/tutorial;make -f Makefile.local)
(cd ../../fml/doc/en/tutorial;make -f Makefile.local)
_doc_check:
@ echo ""
@ echo "===> tutorial check (ja)"
@ (cd ../../fml/doc/ja/tutorial;make check)
@ echo ""
@ echo ""
@ echo "===> tutorial check (en)"
@ (cd ../../fml/doc/en/tutorial;make check)
@ echo ""
_doc_todo:
@ echo ""
@ ( cd tutorial/ ;\
perl ../../../../regress/doc/cat.pl |\
perl ../../../../regress/doc/listup_todo_jp.pl;\
)
@ echo ""
|