Graphite/libraries/path-bool/visual-tests/generate-ground-truth.sh
Dennis Kobert 8a1089938e
Path Bool library code cleanup (#2000)
* Remove log statements

* Add feature gates to functions in path.rs

* Fix infinite parsing loop and add new test

* License tweaks

* Remove trailing zero in whole number floats

* Flatten visual-tests directory

* Code review

* Clean up printlines

* Add error handling to path parsing

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-23 12:16:31 +02:00

10 lines
324 B
Bash

INKSCAPE_CMD=inkscape
OPS=(union difference intersection exclusion division fracture)
for dir in */; do
for op in "${OPS[@]}"; do
if [ ! -e "$dir/$op.svg" ]; then
$INKSCAPE_CMD --actions="select-all; path-$op; export-filename:$dir/$op.svg; export-plain-svg; export-do; file-close" "$dir/original.svg"
fi
done
done