* Fixed references to the custom shape generation script in the
oox/README.md to use generate.sh instead of README.md
* Added README.md to oox/source/drawingml/customshapes folder
* Moved documentation parts from the script to the README.md
The README script was renamed to generate.sh before in the commit
59577dbb84
Change-Id: Id167b32c7a101806c33126ea1642a0194d693231
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119376
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
39 lines
1.2 KiB
Bash
Executable File
39 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script is used to generate the custom shape presets
|
|
|
|
# We want to exit on errors...
|
|
|
|
set -o errexit
|
|
|
|
# oox needs to be build with dbglevel=2 so that DEBUG is defined.
|
|
|
|
make oox.clean && make oox dbglevel=2
|
|
|
|
# This reads the
|
|
# oox/source/drawingml/customshapes/presetShapeDefinitions.xml file.
|
|
# It will produce the file
|
|
# oox/source/drawingml/customshapes/pptx/cshape-all.ppx and a whole
|
|
# bunch of other files that aren't needed further.
|
|
|
|
(cd oox/source/drawingml/customshapes && ./generatePresetsPPTXs.pl)
|
|
|
|
|
|
# Then load it and store the debugging output.
|
|
# We need only the SAL_INFO output with tag "oox.csdata", plus stderr
|
|
# for PropertyMap::dumpData() output.
|
|
|
|
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
|
|
|
|
|
|
# Now run a script that reads the above log file and generates the
|
|
# oox-drawingml-cs-presets data:
|
|
|
|
(cd oox/source/drawingml/customshapes && ./generatePresetsData.pl)
|
|
|
|
|
|
echo
|
|
echo "To see what has been done, run git diff --patience oox/source/drawingml"
|
|
echo
|
|
|