Commit 0706887e authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* doc/ (svgo): preserve the IDs in oaut-dot4.svg.

parent 8d91aa42
......@@ -36,11 +36,17 @@ doc:
# We use SVGO only if it is available.
SVGO = if ! (svgo -v >/dev/null); then :; else svgo --disable=removeViewBox
SVGOID = $(SVGO) --disable=cleanupIDs
SVGOEND = ; fi
dist-hook: svgo
## We need to preserve the IDs in aout-dot4.svg
chmod u+w $(distdir)/userdoc
mv $(distdir)/userdoc/oaut-dot4.svg $(distdir)/userdoc/oaut-dot4.tmp
$(SVGO) -f $(distdir)/userdoc $(SVGOEND)
mv $(distdir)/userdoc/oaut-dot4.tmp $(distdir)/userdoc/oaut-dot4.svg
$(SVGOID) -i $(distdir)/userdoc/oaut-dot4.svg $(SVGOEND)
stamp: $(srcdir)/ $(top_srcdir)/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment