]> git.proxmox.com Git - pve-docs.git/commitdiff
follouwp: test for instant view may not fail, else Make thins something real failed
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Oct 2019 13:14:22 +0000 (15:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Oct 2019 13:14:22 +0000 (15:14 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
pve-doc-generator.mk.in

index 6eb2639959050ca49c5f81cf4884a2b44ef67029..ca56e964f93520d264039d7285d519a03822ba9b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,7 +95,7 @@ README.html: README.adoc
 
 .PHONY: index
 index: index.html
 
 .PHONY: index
 index: index.html
-       test -n "$${PVE_DOC_INSTANTVIEW}" && $(BROWSER) index.html &
+       test -z "$${PVE_DOC_INSTANTVIEW}" || $(BROWSER) index.html &
 
 chapter-index-table.adoc: asciidoc-pve
        ./asciidoc-pve chapter-table >$@.tmp
 
 chapter-index-table.adoc: asciidoc-pve
        ./asciidoc-pve chapter-table >$@.tmp
index 60737286d6872b61ea602feae242d35bde54101b..77fd4f641f756cbf9ef6235ae6e14132fea8ffe2 100644 (file)
@@ -76,21 +76,21 @@ chapter-%.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
 
 %.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
 
 %.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
+       test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@
 
 %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
 
 %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
+       test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@
 
 %.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
 
 %.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
+       test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@
 
 %.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc