Skip to contentSkip to conversation

doc: Look for asciidoc images also in /etc

PATCH New Jan Kiszka 1 participant 1 message Feb 3, 2020

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 doc: Look for asciidoc images also in /etc

From: Jan Kiszka <[email protected]>

This is where OpenSUSE puts them, maybe others as well.

---
 doc/asciidoc/Makefile.am | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
doc/asciidoc/Makefile.am +7 -3
index 9d06e77987..8e33c72814 100644
@@ -106,9 +106,13 @@ $(tmpdir)/%.txt: %.adoc Makefile plaintext.conf plaintext.xsl
 
 html/asciidoc-icons:
 	$(RM) -R asciidoc-icons
-	@test -d /usr/share/doc/asciidoc/images/ && \
-	cp -a /usr/share/doc/asciidoc/images/icons/ html/asciidoc-icons || \
-	cp -a /usr/share/asciidoc/images/icons/ html/asciidoc-icons
+	@if test -d /usr/share/doc/asciidoc/images/; then \
+		cp -a /usr/share/doc/asciidoc/images/icons/ html/asciidoc-icons; \
+	elif test -d /usr/share/asciidoc/images/icons/; then \
+		cp -a /usr/share/asciidoc/images/icons/ html/asciidoc-icons; \
+	else \
+		cp -a /etc/asciidoc/images/icons/ html/asciidoc-icons; \
+	fi
 
 html/asciidoc-icons/callouts: html/asciidoc-icons
 
Signature · 6 lines
2.16.4


-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux