1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=gfxcmp 31*cdf0e10cSrcweirTARGET=notargetyet 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir.INCLUDE : settings.mk 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir.INCLUDE : target.mk 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir# call with PDF=1 to use office pdf exporter instead of the XPrinter API 42*cdf0e10cSrcweir.IF "$(PDF)"!="" 43*cdf0e10cSrcweir CREATORTYPE="-creatortype" pdf 44*cdf0e10cSrcweir.ELSE 45*cdf0e10cSrcweir CREATORTYE="-creatortype" ps 46*cdf0e10cSrcweir.ENDIF 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir.IF "$(SHOW)"!="" 49*cdf0e10cSrcweir P_SHOW=-show 50*cdf0e10cSrcweir.ENDIF 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir# call with PREPARE=1 to only create new reference files 54*cdf0e10cSrcweir# copy these files by hand into the corresponding directories 55*cdf0e10cSrcweir.IF "$(PREPARE)"!="" 56*cdf0e10cSrcweir PREPAREONLY="-prepareonly" 1 57*cdf0e10cSrcweir.ELSE 58*cdf0e10cSrcweir PREPAREONLY= 59*cdf0e10cSrcweir.ENDIF 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir.IF "$(DOCUMENTPOOL)"=="" 62*cdf0e10cSrcweir DOCUMENTPOOL=$PRJ$/document-pool 63*cdf0e10cSrcweir.ENDIF 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir# PERLDEBUG=-d:ptkdb 66*cdf0e10cSrcweirALLTAR: selftest 67*cdf0e10cSrcweir# pwd 68*cdf0e10cSrcweir# $(PERL) $(PERLDEBUG) compare.pl -MAJOR $(WORK_STAMP) -MINOR $(UPDMINOR) -cwsname "$(CWS_WORK_STAMP)" 69*cdf0e10cSrcweir# $(PERL) $(PERLDEBUG) compare.pl -pool singletest 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir# $(PRJ)$/util$/makefile.pmk contains ALLTAR stuff 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir# selftest is the default run through at the moment and use pdf export to create output. 74*cdf0e10cSrcweir# dmake 75*cdf0e10cSrcweirselftest: 76*cdf0e10cSrcweir $(PERL) $(PERLDEBUG) compare.pl -creatortype pdf $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW) 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir# selftest_ps is like the default run through but use always postscript print out 79*cdf0e10cSrcweir# dmake selftest_ps 80*cdf0e10cSrcweirselftest_ps: 81*cdf0e10cSrcweir $(PERL) $(PERLDEBUG) compare.pl -creatortype ps $(PREPAREONLY) -pool singletest -document eis-test.odt $(P_SHOW) 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir# 84*cdf0e10cSrcweir# 85*cdf0e10cSrcweir# The follows are demonstration targets, DO NOT DELETE 86*cdf0e10cSrcweir# 87*cdf0e10cSrcweir# 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir# dmake demo SHOW=1 90*cdf0e10cSrcweirdemo: 91*cdf0e10cSrcweir $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -pool $@ $(P_SHOW) 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir# failtest is a demonstration of a failure, with SHOW=1 it should open a java windows which shows 3 pictures, 94*cdf0e10cSrcweir# the current document, the reference document and the difference between both. 95*cdf0e10cSrcweir# dmake failtest SHOW=1 96*cdf0e10cSrcweir# dmake failtest PREPARE=1 97*cdf0e10cSrcweir# This test will most the time fail, it is just a demonstration. 98*cdf0e10cSrcweirfailtest: 99*cdf0e10cSrcweir $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force -pool demo -document CurrentTime.ods $(P_SHOW) 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir# manual runs through all documents found in document-pool 102*cdf0e10cSrcweir# dmake manual 103*cdf0e10cSrcweir# dmake manual PDF=1 SHOW=1 104*cdf0e10cSrcweir# dmake manual PREPARE=1 PDF=1 105*cdf0e10cSrcweir# should help to create a lot of references at one time. 106*cdf0e10cSrcweirmanual: 107*cdf0e10cSrcweir $(PERL) $(PERLDEBUG) compare.pl $(CREATORTYPE) $(PREPAREONLY) -force $(P_SHOW) 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir# msoffice: 110*cdf0e10cSrcweir# $(PERL) $(PERLDEBUG) compare.pl -creatortype msoffice $(PREPAREONLY) -pool msoffice -document calc_cellformat_import_biff8.xls $(P_SHOW) 111*cdf0e10cSrcweir 112*cdf0e10cSrcweirclean: 113