fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / source / drawingml / customshapes / README
blob0d4fab9bf6ffe87fddeb86b9f6306aa881bc32fe
1 #!/bin/bash
3 # The Perl code here is used to generate the custom shape presets
4 # source code.
6 # This file is both a README and also, if run as a shell script, does what
7 # it describes.
9 # We want to exit on errors...
11 set -o errexit
13 # To re-generate the code, you need to be on Linux (I think).
14 # It is not necessary to do a make test-install, just run from instdir.
15 # oox needs to be build with dbglevel=2 so that DEBUG is defined.
17 make oox.clean && make oox dbglevel=2
19 # This reads the
20 # oox/source/drawingml/customshapes/presetShapeDefinitions.xml file.
21 # It will produce the file
22 # oox/source/drawingml/customshapes/pptx/cshape-all.ppx and a whole
23 # bunch of other files that aren't needed further.
25 (cd oox/source/drawingml/customshapes && ./generatePresetsPPTXs.pl)
28 # Then load it and store the debugging output.
29 # We need only the SAL_INFO output with tag "oox.csdata", plus stderr
30 # for PropertyMap::dumpData() output.
32 SAL_LOG='+INFO.oox.csdata-WARN' instdir/program/soffice --headless --convert-to odp --outdir oox/source/drawingml/customshapes/ oox/source/drawingml/customshapes/pptx/cshape-all.pptx > oox/source/drawingml/customshapes/custom-shapes.log 2>&1
35 # Now run a script that reads the above log file and generates the
36 # oox-drawingml-cs-presets data:
38 (cd oox/source/drawingml/customshapes && ./generatePresetsData.pl)
41 echo
42 echo "To see what has been done, run git diff --patience oox/source/drawingml"
43 echo