1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
33 # --- Settings -----------------------------------------------------
35 .INCLUDE
: settings.mk
37 # --- Targets ------------------------------------------------------
41 # call with PDF=1 to use office pdf exporter instead of the XPrinter API
43 CREATORTYPE
="-creatortype" pdf
45 CREATORTYE
="-creatortype" ps
53 # call with PREPARE=1 to only create new reference files
54 # copy these files by hand into the corresponding directories
56 PREPAREONLY
="-prepareonly" 1
61 .IF
"$(DOCUMENTPOOL)"==""
62 DOCUMENTPOOL
=$PRJ$/document-pool
68 # $(PERL) $(PERLDEBUG) compare.pl -MAJOR $(WORK_STAMP) -MINOR $(UPDMINOR) -cwsname "$(CWS_WORK_STAMP)"
69 # $(PERL) $(PERLDEBUG) compare.pl -pool singletest
71 # $(PRJ)$/util$/makefile.pmk contains ALLTAR stuff
73 # selftest is the default run through at the moment and use pdf export to create output.
76 $(PERL
) $(PERLDEBUG
) compare.pl
-creatortype pdf
$(PREPAREONLY
) -pool singletest
-document eis-test.odt
$(P_SHOW
)
78 # selftest_ps is like the default run through but use always postscript print out
81 $(PERL
) $(PERLDEBUG
) compare.pl
-creatortype ps
$(PREPAREONLY
) -pool singletest
-document eis-test.odt
$(P_SHOW
)
85 # The follows are demonstration targets, DO NOT DELETE
91 $(PERL
) $(PERLDEBUG
) compare.pl
$(CREATORTYPE
) $(PREPAREONLY
) -pool
$@
$(P_SHOW
)
93 # failtest is a demonstration of a failure, with SHOW=1 it should open a java windows which shows 3 pictures,
94 # the current document, the reference document and the difference between both.
95 # dmake failtest SHOW=1
96 # dmake failtest PREPARE=1
97 # This test will most the time fail, it is just a demonstration.
99 $(PERL
) $(PERLDEBUG
) compare.pl
$(CREATORTYPE
) $(PREPAREONLY
) -force -pool demo
-document CurrentTime.ods
$(P_SHOW
)
101 # manual runs through all documents found in document-pool
103 # dmake manual PDF=1 SHOW=1
104 # dmake manual PREPARE=1 PDF=1
105 # should help to create a lot of references at one time.
107 $(PERL
) $(PERLDEBUG
) compare.pl
$(CREATORTYPE
) $(PREPAREONLY
) -force $(P_SHOW
)
110 # $(PERL) $(PERLDEBUG) compare.pl -creatortype msoffice $(PREPAREONLY) -pool msoffice -document calc_cellformat_import_biff8.xls $(P_SHOW)