tdf#154285 Check upper bound of arguments in SbRtl_Minute function
[LibreOffice.git] / oox / source / drawingml / customshapes / generate.sh
bloba13ef646dfb8a36fc56346196be8a2e81d89b88b
1 #!/usr/bin/env bash
3 # This script is used to generate the custom shape presets
5 # We want to exit on errors...
7 set -o errexit
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
13 # This reads the
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)
35 echo
36 echo "To see what has been done, run git diff --patience oox/source/drawingml"
37 echo