tnef 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/tnef/AUTHORS +7 -0
- data/ext/tnef/BUGS.in +5 -0
- data/ext/tnef/COPYING +340 -0
- data/ext/tnef/ChangeLog +1550 -0
- data/ext/tnef/INSTALL +234 -0
- data/ext/tnef/Makefile.am +7 -0
- data/ext/tnef/Makefile.in +699 -0
- data/ext/tnef/NEWS +177 -0
- data/ext/tnef/README +39 -0
- data/ext/tnef/THANKS +1 -0
- data/ext/tnef/TODO +7 -0
- data/ext/tnef/acinclude.m4 +47 -0
- data/ext/tnef/aclocal.m4 +1012 -0
- data/ext/tnef/configure +6815 -0
- data/ext/tnef/configure.in +67 -0
- data/ext/tnef/depcomp +584 -0
- data/ext/tnef/doc/FAQ +25 -0
- data/ext/tnef/doc/Makefile.am +6 -0
- data/ext/tnef/doc/Makefile.in +623 -0
- data/ext/tnef/doc/file-format.tex +139 -0
- data/ext/tnef/doc/tnef.1.in +183 -0
- data/ext/tnef/doc/www/Makefile.am +14 -0
- data/ext/tnef/doc/www/Makefile.in +542 -0
- data/ext/tnef/doc/www/cgi-bin/Makefile.am +14 -0
- data/ext/tnef/doc/www/cgi-bin/Makefile.in +340 -0
- data/ext/tnef/doc/www/htdocs/Makefile.am +14 -0
- data/ext/tnef/doc/www/htdocs/Makefile.in +340 -0
- data/ext/tnef/extconf.rb +3 -0
- data/ext/tnef/install-sh +507 -0
- data/ext/tnef/missing +367 -0
- data/ext/tnef/mkinstalldirs +161 -0
- data/ext/tnef/src/Makefile.am +48 -0
- data/ext/tnef/src/Makefile.in +700 -0
- data/ext/tnef/src/alloc.c +107 -0
- data/ext/tnef/src/alloc.h +54 -0
- data/ext/tnef/src/attr.c +270 -0
- data/ext/tnef/src/attr.h +74 -0
- data/ext/tnef/src/common.h +101 -0
- data/ext/tnef/src/config.h.in +111 -0
- data/ext/tnef/src/date.c +66 -0
- data/ext/tnef/src/date.h +43 -0
- data/ext/tnef/src/debug.c +45 -0
- data/ext/tnef/src/debug.h +32 -0
- data/ext/tnef/src/file.c +259 -0
- data/ext/tnef/src/file.h +48 -0
- data/ext/tnef/src/main.c +386 -0
- data/ext/tnef/src/mapi-names.data +430 -0
- data/ext/tnef/src/mapi-types.data +19 -0
- data/ext/tnef/src/mapi_attr.c +419 -0
- data/ext/tnef/src/mapi_attr.h +78 -0
- data/ext/tnef/src/mkdata.awk +100 -0
- data/ext/tnef/src/options.c +32 -0
- data/ext/tnef/src/options.h +67 -0
- data/ext/tnef/src/path.c +397 -0
- data/ext/tnef/src/path.h +34 -0
- data/ext/tnef/src/replace/Makefile.am +8 -0
- data/ext/tnef/src/replace/Makefile.in +435 -0
- data/ext/tnef/src/replace/basename.c +45 -0
- data/ext/tnef/src/replace/dummy.c +7 -0
- data/ext/tnef/src/replace/getopt_long.c +940 -0
- data/ext/tnef/src/replace/getopt_long.h +141 -0
- data/ext/tnef/src/replace/malloc.c +41 -0
- data/ext/tnef/src/replace/strdup.c +51 -0
- data/ext/tnef/src/rtf.c +362 -0
- data/ext/tnef/src/rtf.h +36 -0
- data/ext/tnef/src/tnef-names.data +34 -0
- data/ext/tnef/src/tnef-types.data +12 -0
- data/ext/tnef/src/tnef.c +396 -0
- data/ext/tnef/src/tnef.h +45 -0
- data/ext/tnef/src/util.c +112 -0
- data/ext/tnef/src/util.h +42 -0
- data/ext/tnef/src/write.c +136 -0
- data/ext/tnef/src/write.h +25 -0
- data/ext/tnef/src/xstrdup.c +41 -0
- data/ext/tnef/tests/Makefile.am +4 -0
- data/ext/tnef/tests/Makefile.in +530 -0
- data/ext/tnef/tests/cmdline/AUTHORS +8 -0
- data/ext/tnef/tests/cmdline/AUTHORS.baseline +8 -0
- data/ext/tnef/tests/cmdline/Makefile.am +33 -0
- data/ext/tnef/tests/cmdline/Makefile.in +455 -0
- data/ext/tnef/tests/cmdline/basic.baseline +4 -0
- data/ext/tnef/tests/cmdline/basic.test +39 -0
- data/ext/tnef/tests/cmdline/body-test.html.baseline +95 -0
- data/ext/tnef/tests/cmdline/body.baseline +929 -0
- data/ext/tnef/tests/cmdline/body.test +55 -0
- data/ext/tnef/tests/cmdline/debug.baseline +155 -0
- data/ext/tnef/tests/cmdline/debug.test +14 -0
- data/ext/tnef/tests/cmdline/directory.baseline +3 -0
- data/ext/tnef/tests/cmdline/directory.test +35 -0
- data/ext/tnef/tests/cmdline/help.baseline +63 -0
- data/ext/tnef/tests/cmdline/help.test +12 -0
- data/ext/tnef/tests/cmdline/interactive.test +5 -0
- data/ext/tnef/tests/cmdline/list.baseline +5 -0
- data/ext/tnef/tests/cmdline/list.test +21 -0
- data/ext/tnef/tests/cmdline/maxsize.baseline +828 -0
- data/ext/tnef/tests/cmdline/maxsize.test +43 -0
- data/ext/tnef/tests/cmdline/message.html.baseline +95 -0
- data/ext/tnef/tests/cmdline/mime-types.baseline +3 -0
- data/ext/tnef/tests/cmdline/mime-types.test +11 -0
- data/ext/tnef/tests/cmdline/overwrite.baseline +8 -0
- data/ext/tnef/tests/cmdline/overwrite.test +40 -0
- data/ext/tnef/tests/cmdline/rtf-test.rtf.baseline +0 -0
- data/ext/tnef/tests/cmdline/stdin.baseline +2 -0
- data/ext/tnef/tests/cmdline/stdin.test +18 -0
- data/ext/tnef/tests/cmdline/test.tnef +0 -0
- data/ext/tnef/tests/cmdline/triples-test-2.rtf.baseline +0 -0
- data/ext/tnef/tests/cmdline/triples-test-2.txt.baseline +0 -0
- data/ext/tnef/tests/cmdline/triples-test.txt.baseline +0 -0
- data/ext/tnef/tests/cmdline/use-path.baseline +0 -0
- data/ext/tnef/tests/cmdline/use-path.test +5 -0
- data/ext/tnef/tests/cmdline/verbose.baseline +5 -0
- data/ext/tnef/tests/cmdline/verbose.test +19 -0
- data/ext/tnef/tests/cmdline/version.baseline +17 -0
- data/ext/tnef/tests/cmdline/version.test +14 -0
- data/ext/tnef/tests/files/MAPI_ATTACH_DATA_OBJ.test +9 -0
- data/ext/tnef/tests/files/MAPI_OBJECT.test +9 -0
- data/ext/tnef/tests/files/Makefile.am +16 -0
- data/ext/tnef/tests/files/Makefile.in +636 -0
- data/ext/tnef/tests/files/baselines/AUTHORS.baseline +8 -0
- data/ext/tnef/tests/files/baselines/AUTOEXEC.BAT.baseline +0 -0
- data/ext/tnef/tests/files/baselines/CONFIG.SYS.baseline +0 -0
- data/ext/tnef/tests/files/baselines/MAPI_ATTACH_DATA_OBJ-body.rtf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/MAPI_ATTACH_DATA_OBJ.baseline +229 -0
- data/ext/tnef/tests/files/baselines/MAPI_OBJECT-body.rtf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/MAPI_OBJECT.baseline +153 -0
- data/ext/tnef/tests/files/baselines/Makefile.am +35 -0
- data/ext/tnef/tests/files/baselines/Makefile.in +361 -0
- data/ext/tnef/tests/files/baselines/README.baseline +31 -0
- data/ext/tnef/tests/files/baselines/TechlibDEC99-JAN00.doc.baseline +0 -0
- data/ext/tnef/tests/files/baselines/TechlibDEC99.doc.baseline +0 -0
- data/ext/tnef/tests/files/baselines/TechlibNOV99.doc.baseline +0 -0
- data/ext/tnef/tests/files/baselines/Untitled_Attachment.baseline +0 -0
- data/ext/tnef/tests/files/baselines/VIA_Nytt_1402.doc.baseline +0 -0
- data/ext/tnef/tests/files/baselines/VIA_Nytt_1402.pdf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/VIA_Nytt_14021.htm.baseline +1914 -0
- data/ext/tnef/tests/files/baselines/body-body.html.baseline +95 -0
- data/ext/tnef/tests/files/baselines/body.baseline +124 -0
- data/ext/tnef/tests/files/baselines/boot.ini.baseline +6 -0
- data/ext/tnef/tests/files/baselines/data-before-name-body.rtf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/data-before-name.baseline +213 -0
- data/ext/tnef/tests/files/baselines/garbage-at-end.baseline +73 -0
- data/ext/tnef/tests/files/baselines/generpts.src.baseline +1691 -0
- data/ext/tnef/tests/files/baselines/long-filename-body.rtf.baseline +26 -0
- data/ext/tnef/tests/files/baselines/long-filename.baseline +218 -0
- data/ext/tnef/tests/files/baselines/message.rtf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/missing-filenames-body.rtf.baseline +20 -0
- data/ext/tnef/tests/files/baselines/missing-filenames.baseline +252 -0
- data/ext/tnef/tests/files/baselines/multi-name-property.baseline +243 -0
- data/ext/tnef/tests/files/baselines/one-file.baseline +155 -0
- data/ext/tnef/tests/files/baselines/rtf-body.rtf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/rtf.baseline +167 -0
- data/ext/tnef/tests/files/baselines/triples-body.rtf.baseline +0 -0
- data/ext/tnef/tests/files/baselines/triples.baseline +254 -0
- data/ext/tnef/tests/files/baselines/two-files.baseline +186 -0
- data/ext/tnef/tests/files/body.test +9 -0
- data/ext/tnef/tests/files/data-before-name.test +9 -0
- data/ext/tnef/tests/files/datafiles/MAPI_ATTACH_DATA_OBJ.list +4 -0
- data/ext/tnef/tests/files/datafiles/MAPI_ATTACH_DATA_OBJ.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/MAPI_OBJECT.list +2 -0
- data/ext/tnef/tests/files/datafiles/MAPI_OBJECT.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/Makefile.am +27 -0
- data/ext/tnef/tests/files/datafiles/Makefile.in +351 -0
- data/ext/tnef/tests/files/datafiles/body.list +1 -0
- data/ext/tnef/tests/files/datafiles/body.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/data-before-name.list +4 -0
- data/ext/tnef/tests/files/datafiles/data-before-name.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/garbage-at-end.list +0 -0
- data/ext/tnef/tests/files/datafiles/garbage-at-end.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/long-filename.list +1 -0
- data/ext/tnef/tests/files/datafiles/long-filename.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/missing-filenames.list +1 -0
- data/ext/tnef/tests/files/datafiles/missing-filenames.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/multi-name-property.list +0 -0
- data/ext/tnef/tests/files/datafiles/multi-name-property.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/one-file.list +1 -0
- data/ext/tnef/tests/files/datafiles/one-file.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/rtf.list +1 -0
- data/ext/tnef/tests/files/datafiles/rtf.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/triples.list +1 -0
- data/ext/tnef/tests/files/datafiles/triples.tnef +0 -0
- data/ext/tnef/tests/files/datafiles/two-files.list +2 -0
- data/ext/tnef/tests/files/datafiles/two-files.tnef +0 -0
- data/ext/tnef/tests/files/file-util.sh +38 -0
- data/ext/tnef/tests/files/garbage-at-end.test +9 -0
- data/ext/tnef/tests/files/long-filename.test +9 -0
- data/ext/tnef/tests/files/missing-filenames.test +9 -0
- data/ext/tnef/tests/files/multi-name-property.test +9 -0
- data/ext/tnef/tests/files/one-file.test +9 -0
- data/ext/tnef/tests/files/rtf.test +9 -0
- data/ext/tnef/tests/files/triples.test +9 -0
- data/ext/tnef/tests/files/two-files.test +9 -0
- data/ext/tnef/tests/util.sh +32 -0
- data/ext/tnef/tnef.spec.in +44 -0
- data/lib/tnef.rb +30 -0
- data/lib/tnef/executable.rb +27 -0
- data/lib/tnef/version.rb +3 -0
- metadata +243 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
bin=$srcdir/../../src/tnef
|
5
|
+
tnef_file=$srcdir/test.tnef
|
6
|
+
|
7
|
+
do_tnef () {
|
8
|
+
$bin $1 --debug --list $tnef_file > $$.out 2> $$.err
|
9
|
+
cat $$.out $$.err >> $srcdir/maxsize.output
|
10
|
+
rm -f $$.out $$.err
|
11
|
+
echo >> $srcdir/maxsize.output
|
12
|
+
}
|
13
|
+
|
14
|
+
rm -f maxsize.output
|
15
|
+
touch maxsize.output
|
16
|
+
|
17
|
+
# test the -x option
|
18
|
+
do_tnef "-x 33"
|
19
|
+
|
20
|
+
# test the --maxsize option
|
21
|
+
do_tnef --maxsize=33
|
22
|
+
|
23
|
+
# invalid input
|
24
|
+
do_tnef --maxsize=foo
|
25
|
+
|
26
|
+
# negative input
|
27
|
+
do_tnef --maxsize=-33
|
28
|
+
|
29
|
+
# zero input
|
30
|
+
do_tnef --maxsize=0
|
31
|
+
|
32
|
+
# disallow allocation
|
33
|
+
do_tnef --maxsize=1024
|
34
|
+
|
35
|
+
# allow allocation
|
36
|
+
do_tnef --maxsize=2048
|
37
|
+
|
38
|
+
# borderline cases
|
39
|
+
do_tnef --maxsize=1464
|
40
|
+
do_tnef --maxsize=1463
|
41
|
+
do_tnef --maxsize=1465
|
42
|
+
|
43
|
+
check_test maxsize
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
2
|
+
<HTML><HEAD>
|
3
|
+
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
|
4
|
+
<META content="MSHTML 6.00.3790.1830" name=GENERATOR></HEAD>
|
5
|
+
<BODY>
|
6
|
+
<DIV>
|
7
|
+
<DIV><FONT face=Arial size=2>THE BILL OF RIGHTS<BR>Amendments 1-10 of the
|
8
|
+
Constitution</FONT></DIV>
|
9
|
+
<DIV> </DIV>
|
10
|
+
<DIV><FONT face=Arial size=2>The Conventions of a number of the States having,
|
11
|
+
at the time of adopting the Constitution, expressed a desire, in order to
|
12
|
+
prevent misconstruction or abuse of its powers, that further declaratory and
|
13
|
+
restrictive clauses should be added, and as extending the ground of public
|
14
|
+
confidence in the Government will best insure the beneficent ends of its
|
15
|
+
institution; <BR>Resolved, by the Senate and House of Representatives of the
|
16
|
+
United States of America, in Congress assembled, two-thirds of both Houses
|
17
|
+
concurring, that the following articles be proposed to the Legislatures of the
|
18
|
+
several States, as amendments to the Constitution of the United States; all or
|
19
|
+
any of which articles, when ratified by three-fourths of the said Legislatures,
|
20
|
+
to be valid to all intents and purposes as part of the said Constitution,
|
21
|
+
namely: </FONT></DIV>
|
22
|
+
<DIV> </DIV>
|
23
|
+
<DIV><FONT face=Arial size=2>Amendment I</FONT></DIV>
|
24
|
+
<DIV> </DIV>
|
25
|
+
<DIV><FONT face=Arial size=2>Congress shall make no law respecting an
|
26
|
+
establishment of religion, or prohibiting the free exercise thereof; or
|
27
|
+
abridging the freedom of speech, or of the press; or the right of the people
|
28
|
+
peaceably to assemble, and to petition the government for a redress of
|
29
|
+
grievances. </FONT></DIV>
|
30
|
+
<DIV> </DIV>
|
31
|
+
<DIV><FONT face=Arial size=2>Amendment II</FONT></DIV>
|
32
|
+
<DIV> </DIV>
|
33
|
+
<DIV><FONT face=Arial size=2>A well regulated militia, being necessary to the
|
34
|
+
security of a free state, the right of the people to keep and bear arms, shall
|
35
|
+
not be infringed. </FONT></DIV>
|
36
|
+
<DIV> </DIV>
|
37
|
+
<DIV><FONT face=Arial size=2>Amendment III</FONT></DIV>
|
38
|
+
<DIV> </DIV>
|
39
|
+
<DIV><FONT face=Arial size=2>No soldier shall, in time of peace be quartered in
|
40
|
+
any house, without the consent of the owner, nor in time of war, but in a manner
|
41
|
+
to be prescribed by law. </FONT></DIV>
|
42
|
+
<DIV> </DIV>
|
43
|
+
<DIV><FONT face=Arial size=2>Amendment IV</FONT></DIV>
|
44
|
+
<DIV> </DIV>
|
45
|
+
<DIV><FONT face=Arial size=2>The right of the people to be secure in their
|
46
|
+
persons, houses, papers, and effects, against unreasonable searches and
|
47
|
+
seizures, shall not be violated, and no warrants shall issue, but upon probable
|
48
|
+
cause, supported by oath or affirmation, and particularly describing the place
|
49
|
+
to be searched, and the persons or things to be seized. </FONT></DIV>
|
50
|
+
<DIV> </DIV>
|
51
|
+
<DIV><FONT face=Arial size=2>Amendment V</FONT></DIV>
|
52
|
+
<DIV> </DIV>
|
53
|
+
<DIV><FONT face=Arial size=2>No person shall be held to answer for a capital, or
|
54
|
+
otherwise infamous crime, unless on a presentment or indictment of a grand jury,
|
55
|
+
except in cases arising in the land or naval forces, or in the militia, when in
|
56
|
+
actual service in time of war or public danger; nor shall any person be subject
|
57
|
+
for the same offense to be twice put in jeopardy of life or limb; nor shall be
|
58
|
+
compelled in any criminal case to be a witness against himself, nor be deprived
|
59
|
+
of life, liberty, or property, without due process of law; nor shall private
|
60
|
+
property be taken for public use, without just compensation. </FONT></DIV>
|
61
|
+
<DIV> </DIV>
|
62
|
+
<DIV><FONT face=Arial size=2>Amendment VI</FONT></DIV>
|
63
|
+
<DIV> </DIV>
|
64
|
+
<DIV><FONT face=Arial size=2>In all criminal prosecutions, the accused shall
|
65
|
+
enjoy the right to a speedy and public trial, by an impartial jury of the state
|
66
|
+
and district wherein the crime shall have been committed, which district shall
|
67
|
+
have been previously ascertained by law, and to be informed of the nature and
|
68
|
+
cause of the accusation; to be confronted with the witnesses against him; to
|
69
|
+
have compulsory process for obtaining witnesses in his favor, and to have the
|
70
|
+
assistance of counsel for his defense. </FONT></DIV>
|
71
|
+
<DIV> </DIV>
|
72
|
+
<DIV><FONT face=Arial size=2>Amendment VII</FONT></DIV>
|
73
|
+
<DIV> </DIV>
|
74
|
+
<DIV><FONT face=Arial size=2>In suits at common law, where the value in
|
75
|
+
controversy shall exceed twenty dollars, the right of trial by jury shall be
|
76
|
+
preserved, and no fact tried by a jury, shall be otherwise reexamined in any
|
77
|
+
court of the United States, than according to the rules of the common law.
|
78
|
+
</FONT></DIV>
|
79
|
+
<DIV> </DIV>
|
80
|
+
<DIV><FONT face=Arial size=2>Amendment VIII</FONT></DIV>
|
81
|
+
<DIV> </DIV>
|
82
|
+
<DIV><FONT face=Arial size=2>Excessive bail shall not be required, nor excessive
|
83
|
+
fines imposed, nor cruel and unusual punishments inflicted. </FONT></DIV>
|
84
|
+
<DIV> </DIV>
|
85
|
+
<DIV><FONT face=Arial size=2>Amendment IX</FONT></DIV>
|
86
|
+
<DIV> </DIV>
|
87
|
+
<DIV><FONT face=Arial size=2>The enumeration in the Constitution, of certain
|
88
|
+
rights, shall not be construed to deny or disparage others retained by the
|
89
|
+
people. </FONT></DIV>
|
90
|
+
<DIV> </DIV>
|
91
|
+
<DIV><FONT face=Arial size=2>Amendment X</FONT></DIV>
|
92
|
+
<DIV> </DIV>
|
93
|
+
<DIV><FONT face=Arial size=2>The powers not delegated to the United States by
|
94
|
+
the Constitution, nor prohibited by it to the states, are reserved to the states
|
95
|
+
respectively, or to the people. </FONT></DIV></DIV></BODY></HTML>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
|
5
|
+
bin=$srcdir/../../src/tnef
|
6
|
+
tnef_file=$srcdir/test.tnef
|
7
|
+
|
8
|
+
echo > $srcdir/mime-types.output
|
9
|
+
echo $bin --list-with-mime-types $tnef_file >> $srcdir/mime-types.output 2>&1
|
10
|
+
$bin --list-with-mime-types $tnef_file >> $srcdir/mime-types.output 2>&1
|
11
|
+
check_test mime-types
|
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
|
5
|
+
bin=$srcdir/../../src/tnef
|
6
|
+
tnef_file=$srcdir/test.tnef
|
7
|
+
|
8
|
+
rm -f $srcdir/AUTHORS $srcdir/AUTHORS.1 $srcdir/AUTHORS.2
|
9
|
+
|
10
|
+
# extract the AUTHORS file
|
11
|
+
$bin $tnef_file > /dev/null 2>&1
|
12
|
+
if [ ! -f $srcdir/AUTHORS ]; then
|
13
|
+
echo "AUTHORS file is missing. Test Failed!"
|
14
|
+
exit 1
|
15
|
+
fi
|
16
|
+
|
17
|
+
# do the test
|
18
|
+
echo $bin $tnef_file > $srcdir/overwrite.output
|
19
|
+
$bin $tnef_file >> $srcdir/overwrite.output 2>&1
|
20
|
+
echo >> $srcdir/overwrite.output
|
21
|
+
echo $bin --overwrite $tnef_file >> $srcdir/overwrite.output
|
22
|
+
$bin --overwrite $tnef_file >> $srcdir/overwrite.output
|
23
|
+
echo >> $srcdir/overwrite.output
|
24
|
+
echo $bin --number-backups $tnef_file >> $srcdir/overwrite.output
|
25
|
+
$bin --number-backups $tnef_file >> $srcdir/overwrite.output
|
26
|
+
if [ ! -f $srcdir/AUTHORS.1 ]; then
|
27
|
+
echo "AUTHORS.1 file is missing. Test Failed!"
|
28
|
+
exit 1
|
29
|
+
fi
|
30
|
+
echo >> $srcdir/overwrite.output
|
31
|
+
echo $bin --number-backups $tnef_file >> $srcdir/overwrite.output
|
32
|
+
$bin --number-backups $tnef_file >> $srcdir/overwrite.output
|
33
|
+
if [ ! -f $srcdir/AUTHORS.2 ]; then
|
34
|
+
echo "AUTHORS.2 file is missing. Test Failed!"
|
35
|
+
exit 1
|
36
|
+
fi
|
37
|
+
|
38
|
+
rm -f $srcdir/AUTHORS $srcdir/AUTHORS.1 $srcdir/AUTHORS.2
|
39
|
+
|
40
|
+
check_test overwrite
|
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
|
5
|
+
bin=$srcdir/../../src/tnef
|
6
|
+
tnef_file=$srcdir/test.tnef
|
7
|
+
|
8
|
+
rm -f $srcdir/AUTHORS
|
9
|
+
|
10
|
+
echo cat $tnef_file \| $bin -v -f - > $srcdir/stdin.output 2>&1
|
11
|
+
cat $tnef_file | $bin -v -f - $tnef_file >> $srcdir/stdin.output 2>&1
|
12
|
+
|
13
|
+
if [ ! -f $srcdir/AUTHORS ]; then
|
14
|
+
echo "AUTHORS file does not exists! Test Failed!"
|
15
|
+
exit 1
|
16
|
+
fi
|
17
|
+
|
18
|
+
check_test stdin
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
|
5
|
+
bin=$srcdir/../../src/tnef
|
6
|
+
tnef_file=$srcdir/test.tnef
|
7
|
+
|
8
|
+
echo $bin --verbose $tnef_file > $srcdir/verbose.output 2>&1
|
9
|
+
$bin --verbose $tnef_file >> $srcdir/verbose.output 2>&1
|
10
|
+
check_file $srcdir/AUTHORS
|
11
|
+
rm -f $srcdir/AUTHORS
|
12
|
+
echo >> $srcdir/verbose.output
|
13
|
+
echo $bin --verbose --list $tnef_file >> $srcdir/verbose.output 2>&1
|
14
|
+
$bin --verbose --list $tnef_file >> $srcdir/verbose.output 2>&1
|
15
|
+
if [ -f $srcdir/AUTHORS ]; then
|
16
|
+
echo "AUTHORS file exists. Test Failed!"
|
17
|
+
exit 1
|
18
|
+
fi
|
19
|
+
check_test verbose
|
@@ -0,0 +1,17 @@
|
|
1
|
+
./../../src/tnef --version
|
2
|
+
tnef 1.4.9
|
3
|
+
Copyright (C) 1999-2011 by Mark Simpson
|
4
|
+
Copyright (C) 1997 by Thomas Boll (original code)
|
5
|
+
tnef comes with ABSOLUTELY NO WARRANTY.
|
6
|
+
You may redistribute copies of tnef under the terms of the GNU General
|
7
|
+
Public License. For more information about these matters, see the file
|
8
|
+
named COPYING.
|
9
|
+
|
10
|
+
./../../src/tnef -V
|
11
|
+
tnef 1.4.9
|
12
|
+
Copyright (C) 1999-2011 by Mark Simpson
|
13
|
+
Copyright (C) 1997 by Thomas Boll (original code)
|
14
|
+
tnef comes with ABSOLUTELY NO WARRANTY.
|
15
|
+
You may redistribute copies of tnef under the terms of the GNU General
|
16
|
+
Public License. For more information about these matters, see the file
|
17
|
+
named COPYING.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
. $srcdir/../util.sh
|
4
|
+
|
5
|
+
bin=$srcdir/../../src/tnef
|
6
|
+
|
7
|
+
echo $bin --version > $srcdir/version.output
|
8
|
+
$bin --version >> $srcdir/version.output 2>&1
|
9
|
+
echo >> $srcdir/version.output
|
10
|
+
echo $bin -V >> $srcdir/version.output
|
11
|
+
$bin -V >> $srcdir/version.output 2>&1
|
12
|
+
|
13
|
+
check_test version
|
14
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
TESTS = one-file.test rtf.test two-files.test \
|
3
|
+
missing-filenames.test long-filename.test \
|
4
|
+
data-before-name.test MAPI_OBJECT.test \
|
5
|
+
MAPI_ATTACH_DATA_OBJ.test triples.test \
|
6
|
+
body.test multi-name-property.test \
|
7
|
+
garbage-at-end.test
|
8
|
+
XFAIL_TESTS =
|
9
|
+
|
10
|
+
CLEANFILES = *.output *.diff *.dir
|
11
|
+
|
12
|
+
EXTRA_DIST = $(TESTS) file-util.sh
|
13
|
+
|
14
|
+
SUBDIRS = baselines datafiles
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,636 @@
|
|
1
|
+
# Makefile.in generated by automake 1.11.3 from Makefile.am.
|
2
|
+
# @configure_input@
|
3
|
+
|
4
|
+
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
5
|
+
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
6
|
+
# Foundation, Inc.
|
7
|
+
# This Makefile.in is free software; the Free Software Foundation
|
8
|
+
# gives unlimited permission to copy and/or distribute it,
|
9
|
+
# with or without modifications, as long as this notice is preserved.
|
10
|
+
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
13
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
14
|
+
# PARTICULAR PURPOSE.
|
15
|
+
|
16
|
+
@SET_MAKE@
|
17
|
+
VPATH = @srcdir@
|
18
|
+
pkgdatadir = $(datadir)/@PACKAGE@
|
19
|
+
pkgincludedir = $(includedir)/@PACKAGE@
|
20
|
+
pkglibdir = $(libdir)/@PACKAGE@
|
21
|
+
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
22
|
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
23
|
+
install_sh_DATA = $(install_sh) -c -m 644
|
24
|
+
install_sh_PROGRAM = $(install_sh) -c
|
25
|
+
install_sh_SCRIPT = $(install_sh) -c
|
26
|
+
INSTALL_HEADER = $(INSTALL_DATA)
|
27
|
+
transform = $(program_transform_name)
|
28
|
+
NORMAL_INSTALL = :
|
29
|
+
PRE_INSTALL = :
|
30
|
+
POST_INSTALL = :
|
31
|
+
NORMAL_UNINSTALL = :
|
32
|
+
PRE_UNINSTALL = :
|
33
|
+
POST_UNINSTALL = :
|
34
|
+
XFAIL_TESTS =
|
35
|
+
subdir = tests/files
|
36
|
+
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
37
|
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
38
|
+
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
39
|
+
$(top_srcdir)/configure.in
|
40
|
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
41
|
+
$(ACLOCAL_M4)
|
42
|
+
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
43
|
+
CONFIG_HEADER = $(top_builddir)/src/config.h
|
44
|
+
CONFIG_CLEAN_FILES =
|
45
|
+
CONFIG_CLEAN_VPATH_FILES =
|
46
|
+
SOURCES =
|
47
|
+
DIST_SOURCES =
|
48
|
+
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
49
|
+
html-recursive info-recursive install-data-recursive \
|
50
|
+
install-dvi-recursive install-exec-recursive \
|
51
|
+
install-html-recursive install-info-recursive \
|
52
|
+
install-pdf-recursive install-ps-recursive install-recursive \
|
53
|
+
installcheck-recursive installdirs-recursive pdf-recursive \
|
54
|
+
ps-recursive uninstall-recursive
|
55
|
+
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
56
|
+
distclean-recursive maintainer-clean-recursive
|
57
|
+
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
|
58
|
+
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
|
59
|
+
distdir
|
60
|
+
ETAGS = etags
|
61
|
+
CTAGS = ctags
|
62
|
+
am__tty_colors = \
|
63
|
+
red=; grn=; lgn=; blu=; std=
|
64
|
+
DIST_SUBDIRS = $(SUBDIRS)
|
65
|
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
66
|
+
am__relativize = \
|
67
|
+
dir0=`pwd`; \
|
68
|
+
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
69
|
+
sed_rest='s,^[^/]*/*,,'; \
|
70
|
+
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
71
|
+
sed_butlast='s,/*[^/]*$$,,'; \
|
72
|
+
while test -n "$$dir1"; do \
|
73
|
+
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
74
|
+
if test "$$first" != "."; then \
|
75
|
+
if test "$$first" = ".."; then \
|
76
|
+
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
77
|
+
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
78
|
+
else \
|
79
|
+
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
80
|
+
if test "$$first2" = "$$first"; then \
|
81
|
+
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
82
|
+
else \
|
83
|
+
dir2="../$$dir2"; \
|
84
|
+
fi; \
|
85
|
+
dir0="$$dir0"/"$$first"; \
|
86
|
+
fi; \
|
87
|
+
fi; \
|
88
|
+
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
89
|
+
done; \
|
90
|
+
reldir="$$dir2"
|
91
|
+
ACLOCAL = @ACLOCAL@
|
92
|
+
AMTAR = @AMTAR@
|
93
|
+
AUTOCONF = @AUTOCONF@
|
94
|
+
AUTOHEADER = @AUTOHEADER@
|
95
|
+
AUTOMAKE = @AUTOMAKE@
|
96
|
+
AWK = @AWK@
|
97
|
+
CC = @CC@
|
98
|
+
CCDEPMODE = @CCDEPMODE@
|
99
|
+
CFLAGS = @CFLAGS@
|
100
|
+
CPP = @CPP@
|
101
|
+
CPPFLAGS = @CPPFLAGS@
|
102
|
+
CXX = @CXX@
|
103
|
+
CXXDEPMODE = @CXXDEPMODE@
|
104
|
+
CXXFLAGS = @CXXFLAGS@
|
105
|
+
CYGPATH_W = @CYGPATH_W@
|
106
|
+
DEFS = @DEFS@
|
107
|
+
DEPDIR = @DEPDIR@
|
108
|
+
ECHO_C = @ECHO_C@
|
109
|
+
ECHO_N = @ECHO_N@
|
110
|
+
ECHO_T = @ECHO_T@
|
111
|
+
EGREP = @EGREP@
|
112
|
+
EXEEXT = @EXEEXT@
|
113
|
+
GREP = @GREP@
|
114
|
+
INSTALL = @INSTALL@
|
115
|
+
INSTALL_DATA = @INSTALL_DATA@
|
116
|
+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
117
|
+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
118
|
+
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
119
|
+
LDFLAGS = @LDFLAGS@
|
120
|
+
LIBOBJS = @LIBOBJS@
|
121
|
+
LIBS = @LIBS@
|
122
|
+
LN_S = @LN_S@
|
123
|
+
LTLIBOBJS = @LTLIBOBJS@
|
124
|
+
MAINT = @MAINT@
|
125
|
+
MAKEINFO = @MAKEINFO@
|
126
|
+
MKDIR_P = @MKDIR_P@
|
127
|
+
OBJEXT = @OBJEXT@
|
128
|
+
PACKAGE = @PACKAGE@
|
129
|
+
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
130
|
+
PACKAGE_NAME = @PACKAGE_NAME@
|
131
|
+
PACKAGE_STRING = @PACKAGE_STRING@
|
132
|
+
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
133
|
+
PACKAGE_URL = @PACKAGE_URL@
|
134
|
+
PACKAGE_VERSION = @PACKAGE_VERSION@
|
135
|
+
PATH_SEPARATOR = @PATH_SEPARATOR@
|
136
|
+
RANLIB = @RANLIB@
|
137
|
+
SET_MAKE = @SET_MAKE@
|
138
|
+
SHELL = @SHELL@
|
139
|
+
STRIP = @STRIP@
|
140
|
+
VERSION = @VERSION@
|
141
|
+
abs_builddir = @abs_builddir@
|
142
|
+
abs_srcdir = @abs_srcdir@
|
143
|
+
abs_top_builddir = @abs_top_builddir@
|
144
|
+
abs_top_srcdir = @abs_top_srcdir@
|
145
|
+
ac_ct_CC = @ac_ct_CC@
|
146
|
+
ac_ct_CXX = @ac_ct_CXX@
|
147
|
+
am__include = @am__include@
|
148
|
+
am__leading_dot = @am__leading_dot@
|
149
|
+
am__quote = @am__quote@
|
150
|
+
am__tar = @am__tar@
|
151
|
+
am__untar = @am__untar@
|
152
|
+
bindir = @bindir@
|
153
|
+
build_alias = @build_alias@
|
154
|
+
builddir = @builddir@
|
155
|
+
datadir = @datadir@
|
156
|
+
datarootdir = @datarootdir@
|
157
|
+
docdir = @docdir@
|
158
|
+
dvidir = @dvidir@
|
159
|
+
exec_prefix = @exec_prefix@
|
160
|
+
host_alias = @host_alias@
|
161
|
+
htmldir = @htmldir@
|
162
|
+
includedir = @includedir@
|
163
|
+
infodir = @infodir@
|
164
|
+
install_sh = @install_sh@
|
165
|
+
libdir = @libdir@
|
166
|
+
libexecdir = @libexecdir@
|
167
|
+
localedir = @localedir@
|
168
|
+
localstatedir = @localstatedir@
|
169
|
+
mandir = @mandir@
|
170
|
+
mkdir_p = @mkdir_p@
|
171
|
+
oldincludedir = @oldincludedir@
|
172
|
+
pdfdir = @pdfdir@
|
173
|
+
prefix = @prefix@
|
174
|
+
program_transform_name = @program_transform_name@
|
175
|
+
psdir = @psdir@
|
176
|
+
sbindir = @sbindir@
|
177
|
+
sharedstatedir = @sharedstatedir@
|
178
|
+
srcdir = @srcdir@
|
179
|
+
sysconfdir = @sysconfdir@
|
180
|
+
target_alias = @target_alias@
|
181
|
+
top_build_prefix = @top_build_prefix@
|
182
|
+
top_builddir = @top_builddir@
|
183
|
+
top_srcdir = @top_srcdir@
|
184
|
+
TESTS = one-file.test rtf.test two-files.test \
|
185
|
+
missing-filenames.test long-filename.test \
|
186
|
+
data-before-name.test MAPI_OBJECT.test \
|
187
|
+
MAPI_ATTACH_DATA_OBJ.test triples.test \
|
188
|
+
body.test multi-name-property.test \
|
189
|
+
garbage-at-end.test
|
190
|
+
|
191
|
+
CLEANFILES = *.output *.diff *.dir
|
192
|
+
EXTRA_DIST = $(TESTS) file-util.sh
|
193
|
+
SUBDIRS = baselines datafiles
|
194
|
+
all: all-recursive
|
195
|
+
|
196
|
+
.SUFFIXES:
|
197
|
+
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
198
|
+
@for dep in $?; do \
|
199
|
+
case '$(am__configure_deps)' in \
|
200
|
+
*$$dep*) \
|
201
|
+
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
202
|
+
&& { if test -f $@; then exit 0; else break; fi; }; \
|
203
|
+
exit 1;; \
|
204
|
+
esac; \
|
205
|
+
done; \
|
206
|
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/files/Makefile'; \
|
207
|
+
$(am__cd) $(top_srcdir) && \
|
208
|
+
$(AUTOMAKE) --gnu tests/files/Makefile
|
209
|
+
.PRECIOUS: Makefile
|
210
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
211
|
+
@case '$?' in \
|
212
|
+
*config.status*) \
|
213
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
214
|
+
*) \
|
215
|
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
216
|
+
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
217
|
+
esac;
|
218
|
+
|
219
|
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
220
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
221
|
+
|
222
|
+
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
223
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
224
|
+
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
225
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
226
|
+
$(am__aclocal_m4_deps):
|
227
|
+
|
228
|
+
# This directory's subdirectories are mostly independent; you can cd
|
229
|
+
# into them and run `make' without going through this Makefile.
|
230
|
+
# To change the values of `make' variables: instead of editing Makefiles,
|
231
|
+
# (1) if the variable is set in `config.status', edit `config.status'
|
232
|
+
# (which will cause the Makefiles to be regenerated when you run `make');
|
233
|
+
# (2) otherwise, pass the desired values on the `make' command line.
|
234
|
+
$(RECURSIVE_TARGETS):
|
235
|
+
@fail= failcom='exit 1'; \
|
236
|
+
for f in x $$MAKEFLAGS; do \
|
237
|
+
case $$f in \
|
238
|
+
*=* | --[!k]*);; \
|
239
|
+
*k*) failcom='fail=yes';; \
|
240
|
+
esac; \
|
241
|
+
done; \
|
242
|
+
dot_seen=no; \
|
243
|
+
target=`echo $@ | sed s/-recursive//`; \
|
244
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
245
|
+
echo "Making $$target in $$subdir"; \
|
246
|
+
if test "$$subdir" = "."; then \
|
247
|
+
dot_seen=yes; \
|
248
|
+
local_target="$$target-am"; \
|
249
|
+
else \
|
250
|
+
local_target="$$target"; \
|
251
|
+
fi; \
|
252
|
+
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
253
|
+
|| eval $$failcom; \
|
254
|
+
done; \
|
255
|
+
if test "$$dot_seen" = "no"; then \
|
256
|
+
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
257
|
+
fi; test -z "$$fail"
|
258
|
+
|
259
|
+
$(RECURSIVE_CLEAN_TARGETS):
|
260
|
+
@fail= failcom='exit 1'; \
|
261
|
+
for f in x $$MAKEFLAGS; do \
|
262
|
+
case $$f in \
|
263
|
+
*=* | --[!k]*);; \
|
264
|
+
*k*) failcom='fail=yes';; \
|
265
|
+
esac; \
|
266
|
+
done; \
|
267
|
+
dot_seen=no; \
|
268
|
+
case "$@" in \
|
269
|
+
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
270
|
+
*) list='$(SUBDIRS)' ;; \
|
271
|
+
esac; \
|
272
|
+
rev=''; for subdir in $$list; do \
|
273
|
+
if test "$$subdir" = "."; then :; else \
|
274
|
+
rev="$$subdir $$rev"; \
|
275
|
+
fi; \
|
276
|
+
done; \
|
277
|
+
rev="$$rev ."; \
|
278
|
+
target=`echo $@ | sed s/-recursive//`; \
|
279
|
+
for subdir in $$rev; do \
|
280
|
+
echo "Making $$target in $$subdir"; \
|
281
|
+
if test "$$subdir" = "."; then \
|
282
|
+
local_target="$$target-am"; \
|
283
|
+
else \
|
284
|
+
local_target="$$target"; \
|
285
|
+
fi; \
|
286
|
+
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
287
|
+
|| eval $$failcom; \
|
288
|
+
done && test -z "$$fail"
|
289
|
+
tags-recursive:
|
290
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
291
|
+
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
292
|
+
done
|
293
|
+
ctags-recursive:
|
294
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
295
|
+
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
296
|
+
done
|
297
|
+
|
298
|
+
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
299
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
300
|
+
unique=`for i in $$list; do \
|
301
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
302
|
+
done | \
|
303
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
304
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
305
|
+
mkid -fID $$unique
|
306
|
+
tags: TAGS
|
307
|
+
|
308
|
+
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
309
|
+
$(TAGS_FILES) $(LISP)
|
310
|
+
set x; \
|
311
|
+
here=`pwd`; \
|
312
|
+
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
313
|
+
include_option=--etags-include; \
|
314
|
+
empty_fix=.; \
|
315
|
+
else \
|
316
|
+
include_option=--include; \
|
317
|
+
empty_fix=; \
|
318
|
+
fi; \
|
319
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
320
|
+
if test "$$subdir" = .; then :; else \
|
321
|
+
test ! -f $$subdir/TAGS || \
|
322
|
+
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
323
|
+
fi; \
|
324
|
+
done; \
|
325
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
326
|
+
unique=`for i in $$list; do \
|
327
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
328
|
+
done | \
|
329
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
330
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
331
|
+
shift; \
|
332
|
+
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
333
|
+
test -n "$$unique" || unique=$$empty_fix; \
|
334
|
+
if test $$# -gt 0; then \
|
335
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
336
|
+
"$$@" $$unique; \
|
337
|
+
else \
|
338
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
339
|
+
$$unique; \
|
340
|
+
fi; \
|
341
|
+
fi
|
342
|
+
ctags: CTAGS
|
343
|
+
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
344
|
+
$(TAGS_FILES) $(LISP)
|
345
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
346
|
+
unique=`for i in $$list; do \
|
347
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
348
|
+
done | \
|
349
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
350
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
351
|
+
test -z "$(CTAGS_ARGS)$$unique" \
|
352
|
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
353
|
+
$$unique
|
354
|
+
|
355
|
+
GTAGS:
|
356
|
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
357
|
+
&& $(am__cd) $(top_srcdir) \
|
358
|
+
&& gtags -i $(GTAGS_ARGS) "$$here"
|
359
|
+
|
360
|
+
distclean-tags:
|
361
|
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
362
|
+
|
363
|
+
check-TESTS: $(TESTS)
|
364
|
+
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
|
365
|
+
srcdir=$(srcdir); export srcdir; \
|
366
|
+
list=' $(TESTS) '; \
|
367
|
+
$(am__tty_colors); \
|
368
|
+
if test -n "$$list"; then \
|
369
|
+
for tst in $$list; do \
|
370
|
+
if test -f ./$$tst; then dir=./; \
|
371
|
+
elif test -f $$tst; then dir=; \
|
372
|
+
else dir="$(srcdir)/"; fi; \
|
373
|
+
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
|
374
|
+
all=`expr $$all + 1`; \
|
375
|
+
case " $(XFAIL_TESTS) " in \
|
376
|
+
*[\ \ ]$$tst[\ \ ]*) \
|
377
|
+
xpass=`expr $$xpass + 1`; \
|
378
|
+
failed=`expr $$failed + 1`; \
|
379
|
+
col=$$red; res=XPASS; \
|
380
|
+
;; \
|
381
|
+
*) \
|
382
|
+
col=$$grn; res=PASS; \
|
383
|
+
;; \
|
384
|
+
esac; \
|
385
|
+
elif test $$? -ne 77; then \
|
386
|
+
all=`expr $$all + 1`; \
|
387
|
+
case " $(XFAIL_TESTS) " in \
|
388
|
+
*[\ \ ]$$tst[\ \ ]*) \
|
389
|
+
xfail=`expr $$xfail + 1`; \
|
390
|
+
col=$$lgn; res=XFAIL; \
|
391
|
+
;; \
|
392
|
+
*) \
|
393
|
+
failed=`expr $$failed + 1`; \
|
394
|
+
col=$$red; res=FAIL; \
|
395
|
+
;; \
|
396
|
+
esac; \
|
397
|
+
else \
|
398
|
+
skip=`expr $$skip + 1`; \
|
399
|
+
col=$$blu; res=SKIP; \
|
400
|
+
fi; \
|
401
|
+
echo "$${col}$$res$${std}: $$tst"; \
|
402
|
+
done; \
|
403
|
+
if test "$$all" -eq 1; then \
|
404
|
+
tests="test"; \
|
405
|
+
All=""; \
|
406
|
+
else \
|
407
|
+
tests="tests"; \
|
408
|
+
All="All "; \
|
409
|
+
fi; \
|
410
|
+
if test "$$failed" -eq 0; then \
|
411
|
+
if test "$$xfail" -eq 0; then \
|
412
|
+
banner="$$All$$all $$tests passed"; \
|
413
|
+
else \
|
414
|
+
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
|
415
|
+
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
|
416
|
+
fi; \
|
417
|
+
else \
|
418
|
+
if test "$$xpass" -eq 0; then \
|
419
|
+
banner="$$failed of $$all $$tests failed"; \
|
420
|
+
else \
|
421
|
+
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
|
422
|
+
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
|
423
|
+
fi; \
|
424
|
+
fi; \
|
425
|
+
dashes="$$banner"; \
|
426
|
+
skipped=""; \
|
427
|
+
if test "$$skip" -ne 0; then \
|
428
|
+
if test "$$skip" -eq 1; then \
|
429
|
+
skipped="($$skip test was not run)"; \
|
430
|
+
else \
|
431
|
+
skipped="($$skip tests were not run)"; \
|
432
|
+
fi; \
|
433
|
+
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
|
434
|
+
dashes="$$skipped"; \
|
435
|
+
fi; \
|
436
|
+
report=""; \
|
437
|
+
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
|
438
|
+
report="Please report to $(PACKAGE_BUGREPORT)"; \
|
439
|
+
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
|
440
|
+
dashes="$$report"; \
|
441
|
+
fi; \
|
442
|
+
dashes=`echo "$$dashes" | sed s/./=/g`; \
|
443
|
+
if test "$$failed" -eq 0; then \
|
444
|
+
col="$$grn"; \
|
445
|
+
else \
|
446
|
+
col="$$red"; \
|
447
|
+
fi; \
|
448
|
+
echo "$${col}$$dashes$${std}"; \
|
449
|
+
echo "$${col}$$banner$${std}"; \
|
450
|
+
test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
|
451
|
+
test -z "$$report" || echo "$${col}$$report$${std}"; \
|
452
|
+
echo "$${col}$$dashes$${std}"; \
|
453
|
+
test "$$failed" -eq 0; \
|
454
|
+
else :; fi
|
455
|
+
|
456
|
+
distdir: $(DISTFILES)
|
457
|
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
458
|
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
459
|
+
list='$(DISTFILES)'; \
|
460
|
+
dist_files=`for file in $$list; do echo $$file; done | \
|
461
|
+
sed -e "s|^$$srcdirstrip/||;t" \
|
462
|
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
463
|
+
case $$dist_files in \
|
464
|
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
465
|
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
466
|
+
sort -u` ;; \
|
467
|
+
esac; \
|
468
|
+
for file in $$dist_files; do \
|
469
|
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
470
|
+
if test -d $$d/$$file; then \
|
471
|
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
472
|
+
if test -d "$(distdir)/$$file"; then \
|
473
|
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
474
|
+
fi; \
|
475
|
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
476
|
+
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
477
|
+
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
478
|
+
fi; \
|
479
|
+
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
480
|
+
else \
|
481
|
+
test -f "$(distdir)/$$file" \
|
482
|
+
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
483
|
+
|| exit 1; \
|
484
|
+
fi; \
|
485
|
+
done
|
486
|
+
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
487
|
+
if test "$$subdir" = .; then :; else \
|
488
|
+
test -d "$(distdir)/$$subdir" \
|
489
|
+
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
490
|
+
|| exit 1; \
|
491
|
+
fi; \
|
492
|
+
done
|
493
|
+
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
494
|
+
if test "$$subdir" = .; then :; else \
|
495
|
+
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
496
|
+
$(am__relativize); \
|
497
|
+
new_distdir=$$reldir; \
|
498
|
+
dir1=$$subdir; dir2="$(top_distdir)"; \
|
499
|
+
$(am__relativize); \
|
500
|
+
new_top_distdir=$$reldir; \
|
501
|
+
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
502
|
+
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
503
|
+
($(am__cd) $$subdir && \
|
504
|
+
$(MAKE) $(AM_MAKEFLAGS) \
|
505
|
+
top_distdir="$$new_top_distdir" \
|
506
|
+
distdir="$$new_distdir" \
|
507
|
+
am__remove_distdir=: \
|
508
|
+
am__skip_length_check=: \
|
509
|
+
am__skip_mode_fix=: \
|
510
|
+
distdir) \
|
511
|
+
|| exit 1; \
|
512
|
+
fi; \
|
513
|
+
done
|
514
|
+
check-am: all-am
|
515
|
+
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
|
516
|
+
check: check-recursive
|
517
|
+
all-am: Makefile
|
518
|
+
installdirs: installdirs-recursive
|
519
|
+
installdirs-am:
|
520
|
+
install: install-recursive
|
521
|
+
install-exec: install-exec-recursive
|
522
|
+
install-data: install-data-recursive
|
523
|
+
uninstall: uninstall-recursive
|
524
|
+
|
525
|
+
install-am: all-am
|
526
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
527
|
+
|
528
|
+
installcheck: installcheck-recursive
|
529
|
+
install-strip:
|
530
|
+
if test -z '$(STRIP)'; then \
|
531
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
532
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
533
|
+
install; \
|
534
|
+
else \
|
535
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
536
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
537
|
+
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
538
|
+
fi
|
539
|
+
mostlyclean-generic:
|
540
|
+
|
541
|
+
clean-generic:
|
542
|
+
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
543
|
+
|
544
|
+
distclean-generic:
|
545
|
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
546
|
+
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
547
|
+
|
548
|
+
maintainer-clean-generic:
|
549
|
+
@echo "This command is intended for maintainers to use"
|
550
|
+
@echo "it deletes files that may require special tools to rebuild."
|
551
|
+
clean: clean-recursive
|
552
|
+
|
553
|
+
clean-am: clean-generic mostlyclean-am
|
554
|
+
|
555
|
+
distclean: distclean-recursive
|
556
|
+
-rm -f Makefile
|
557
|
+
distclean-am: clean-am distclean-generic distclean-tags
|
558
|
+
|
559
|
+
dvi: dvi-recursive
|
560
|
+
|
561
|
+
dvi-am:
|
562
|
+
|
563
|
+
html: html-recursive
|
564
|
+
|
565
|
+
html-am:
|
566
|
+
|
567
|
+
info: info-recursive
|
568
|
+
|
569
|
+
info-am:
|
570
|
+
|
571
|
+
install-data-am:
|
572
|
+
|
573
|
+
install-dvi: install-dvi-recursive
|
574
|
+
|
575
|
+
install-dvi-am:
|
576
|
+
|
577
|
+
install-exec-am:
|
578
|
+
|
579
|
+
install-html: install-html-recursive
|
580
|
+
|
581
|
+
install-html-am:
|
582
|
+
|
583
|
+
install-info: install-info-recursive
|
584
|
+
|
585
|
+
install-info-am:
|
586
|
+
|
587
|
+
install-man:
|
588
|
+
|
589
|
+
install-pdf: install-pdf-recursive
|
590
|
+
|
591
|
+
install-pdf-am:
|
592
|
+
|
593
|
+
install-ps: install-ps-recursive
|
594
|
+
|
595
|
+
install-ps-am:
|
596
|
+
|
597
|
+
installcheck-am:
|
598
|
+
|
599
|
+
maintainer-clean: maintainer-clean-recursive
|
600
|
+
-rm -f Makefile
|
601
|
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
602
|
+
|
603
|
+
mostlyclean: mostlyclean-recursive
|
604
|
+
|
605
|
+
mostlyclean-am: mostlyclean-generic
|
606
|
+
|
607
|
+
pdf: pdf-recursive
|
608
|
+
|
609
|
+
pdf-am:
|
610
|
+
|
611
|
+
ps: ps-recursive
|
612
|
+
|
613
|
+
ps-am:
|
614
|
+
|
615
|
+
uninstall-am:
|
616
|
+
|
617
|
+
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \
|
618
|
+
ctags-recursive install-am install-strip tags-recursive
|
619
|
+
|
620
|
+
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
|
621
|
+
all all-am check check-TESTS check-am clean clean-generic \
|
622
|
+
ctags ctags-recursive distclean distclean-generic \
|
623
|
+
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
624
|
+
install install-am install-data install-data-am install-dvi \
|
625
|
+
install-dvi-am install-exec install-exec-am install-html \
|
626
|
+
install-html-am install-info install-info-am install-man \
|
627
|
+
install-pdf install-pdf-am install-ps install-ps-am \
|
628
|
+
install-strip installcheck installcheck-am installdirs \
|
629
|
+
installdirs-am maintainer-clean maintainer-clean-generic \
|
630
|
+
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
|
631
|
+
tags-recursive uninstall uninstall-am
|
632
|
+
|
633
|
+
|
634
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
635
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
636
|
+
.NOEXPORT:
|