3 # This script is used to generate the custom shape presets
5 # We want to exit on errors...
9 # oox needs to be build with dbglevel=2 so that OSL_DEBUG_LEVEL=2 is defined.
11 make oox.clean
&& make oox dbglevel
=2
14 # oox/source/drawingml/customshapes/presetShapeDefinitions.xml file.
15 # It will produce the file
16 # oox/source/drawingml/customshapes/pptx/cshape-all.ppx and a whole
17 # bunch of other files that aren't needed further.
19 (cd oox
/source
/drawingml
/customshapes
&& .
/generatePresetsPPTXs.pl
)
22 # Then load it and store the debugging output.
23 # We need only the SAL_INFO output with tag "oox.csdata", plus stderr
24 # for PropertyMap::dumpData() output.
26 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
29 # Now run a script that reads the above log file and generates the
30 # oox-drawingml-cs-presets data:
32 (cd oox
/source
/drawingml
/customshapes
&& .
/generatePresetsData.pl
)
36 echo "To see what has been done, run git diff --patience oox/source/drawingml"