Added to repository
Showing
1 changed file
with
64 additions
and
0 deletions
mail/testsuite/Makefile.am
0 → 100644
1 | AUTOMAKE_OPTIONS = dejagnu | ||
2 | DEJATOOL = mail | ||
3 | RUNTESTFLAGS = | ||
4 | CLEANFILES = *.log | ||
5 | |||
6 | test_dirs = etc config lib mail spool | ||
7 | |||
8 | dist-hook: | ||
9 | here=`cd $(top_builddir)/$(subdir) && pwd`; \ | ||
10 | srcdir=`cd $(srcdir) && pwd`; \ | ||
11 | distdir=`cd $(distdir) && pwd`; \ | ||
12 | for dir in $(test_dirs); \ | ||
13 | do \ | ||
14 | cd $$srcdir;\ | ||
15 | mkdir $$distdir/$$dir;\ | ||
16 | cd $$dir;\ | ||
17 | for file in DISTFILES `cat DISTFILES`; do \ | ||
18 | d=$$srcdir/$$dir; \ | ||
19 | if test -d $$d/$$file; then \ | ||
20 | cp -pr $$d/$$file $$distdir/$$dir/$$file; \ | ||
21 | else \ | ||
22 | test -f $$distdir/$$dir/$$file \ | ||
23 | || cp -p $$d/$$file $$distdir/$$dir/$$file || exit; \ | ||
24 | fi; \ | ||
25 | done;\ | ||
26 | done;\ | ||
27 | cd $$here | ||
28 | |||
29 | site.exp: Makefile remote.exp | ||
30 | @echo 'Making a new site.exp file...' | ||
31 | @test ! -f site.bak || rm -f site.bak | ||
32 | @echo '## these variables are automatically generated by make ##' > $@-t | ||
33 | @echo '# Do not edit here. If you wish to override these values' >> $@-t | ||
34 | @echo '# edit the last section' >> $@-t | ||
35 | @echo 'set tool $(DEJATOOL)' >> $@-t | ||
36 | @echo "set srcdir `cd $(srcdir); pwd`" >> $@-t | ||
37 | @echo 'set objdir' `pwd` >> $@-t | ||
38 | @echo 'set host_alias $(host_alias)' >> $@-t | ||
39 | @echo 'set host_triplet $(host_triplet)' >> $@-t | ||
40 | @echo 'set target_alias $(target_alias)' >> $@-t | ||
41 | @echo 'set target_triplet $(target_triplet)' >> $@-t | ||
42 | @echo 'set build_alias $(build_alias)' >> $@-t | ||
43 | @echo 'set build_triplet $(build_triplet)' >> $@-t | ||
44 | @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t | ||
45 | @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t | ||
46 | @test ! -f site.exp || mv site.exp site.bak | ||
47 | @mv $@-t site.exp | ||
48 | |||
49 | remote.exp:; | ||
50 | @echo 'Making a new remote.exp file...' | ||
51 | @test ! -f remote.bak || rm -f remote.bak | ||
52 | @echo '## These variables are used to set up for the remote testing.' >> $@-t | ||
53 | @echo '## Please, read file README in this directory for instructions' >> $@-t | ||
54 | @echo '## on how to use this file' >> $@-t | ||
55 | @echo "set host_board `hostname`" >> $@-t | ||
56 | @echo 'set board_info($$host_board,connect) rlogin' >> $@-t | ||
57 | @echo 'set board_info($$host_board,shell_prompt) "\\$$ "' >> $@-t | ||
58 | @echo "set board_info(\$$host_board,top_srcdir) `cd $(top_srcdir); pwd`" >> $@-t | ||
59 | @echo "set board_info(\$$host_board,top_builddir) `cd $(top_builddir); pwd`" >> $@-t | ||
60 | @test ! -f remote.exp || mv remote.exp remote.bak | ||
61 | @mv $@-t remote.exp | ||
62 | |||
63 | |||
64 |
-
Please register or sign in to post a comment