summaryrefslogtreecommitdiff
path: root/doc/doc.am
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-04-06 01:12:42 +1000
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-04-07 14:39:35 +1000
commit8d6254f5497e3699d6eddc33d23358e8db203cdf (patch)
treead40222c672ebbe2d33cb72f25aeb75a91c2f6ea /doc/doc.am
parentb0c7afca0638ac7685e34d8e446387fd0d165a36 (diff)
downloadgroff-git-8d6254f5497e3699d6eddc33d23358e8db203cdf.tar.gz
doc/doc.am: Trivially refactor shell style.
* doc/doc.am: Trivially refactor shell style in rule commands. The placement of `&&` was inconsistent. Always begin a continued rule line with it, and don't give it its own indentation level. In general, operators adjacent to line continuations should _follow_ the continuations because they are easier for humans to spot at the (possibly indented) beginning of a physical line. (I probably _would_ give && and || operators an indentation level, but that's consistently not what the rest of the file does.)
Diffstat (limited to 'doc/doc.am')
-rw-r--r--doc/doc.am52
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/doc.am b/doc/doc.am
index 5b9e3b7b3..1f405cfea 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -367,14 +367,14 @@ mostlyclean-local: mostlyclean_doc
mostlyclean_doc:
if BUILD_HTML
if test -d $(doc_builddir); then \
- cd $(doc_builddir) && \
- for f in $(HTMLDOCFILESALL); do \
+ cd $(doc_builddir) \
+ && for f in $(HTMLDOCFILESALL); do \
$(RM) $$f; \
done; \
fi
if test -d $(doc_builddir)/img; then \
- cd $(doc_builddir)/img && \
- for f in $(HTMLDOCIMAGEFILES); do \
+ cd $(doc_builddir)/img \
+ && for f in $(HTMLDOCIMAGEFILES); do \
$(RM) $$f; \
done; \
rmdir $(doc_builddir)/img || :; \
@@ -385,14 +385,14 @@ endif
fi
if BUILD_HTMLEXAMPLES
if test -d $(doc_builddir); then \
- cd $(doc_builddir) && \
- for f in $(HTMLEXAMPLEFILESALL); do \
+ cd $(doc_builddir) \
+ && for f in $(HTMLEXAMPLEFILESALL); do \
$(RM) $$f; \
done; \
fi
if test -d $(doc_builddir)/img; then \
- cd $(doc_builddir)/img && \
- for f in $(HTMLEXAMPLEIMAGEFILES); do \
+ cd $(doc_builddir)/img \
+ && for f in $(HTMLEXAMPLEIMAGEFILES); do \
$(RM) $$f; \
done; \
rmdir $(doc_builddir)/img || :; \
@@ -402,8 +402,8 @@ endif
install-data-hook: install_doc_htmldoc
install_doc_htmldoc:
if BUILD_HTML
- cd $(doc_builddir) && \
- for f in `ls $(HTMLDOCFILESALL)`; do \
+ cd $(doc_builddir) \
+ && for f in `ls $(HTMLDOCFILESALL)`; do \
$(RM) $(DESTDIR)$(htmldocdir)/$$f; \
$(INSTALL_DATA) $$f $(DESTDIR)$(htmldocdir)/$$f; \
done
@@ -428,8 +428,8 @@ install_doc_gnu_eps: $(DOC_GNU_EPS)
install_doc_examples: $(DOC_GNU_EPS)
if BUILD_HTMLEXAMPLES
- cd $(doc_builddir) && \
- for f in `ls $(HTMLEXAMPLEFILESALL)`; do \
+ cd $(doc_builddir) \
+ && for f in `ls $(HTMLEXAMPLEFILESALL)`; do \
$(RM) $(DESTDIR)$(exampledir)/$$f; \
$(INSTALL_DATA) $$f $(DESTDIR)$(exampledir)/$$f; \
done
@@ -448,14 +448,14 @@ if BUILD_EXAMPLES
$(RM) $(DESTDIR)$(exampledir)/gnu.eps
endif
if BUILD_HTMLEXAMPLES
- -test -d $(DESTDIR)$(docexamplesdir) && \
- cd $(DESTDIR)$(docexamplesdir) && \
- for f in $(HTMLEXAMPLEFILESALL); do \
+ -test -d $(DESTDIR)$(docexamplesdir) \
+ && cd $(DESTDIR)$(docexamplesdir) \
+ && for f in $(HTMLEXAMPLEFILESALL); do \
$(RM) $$f; \
done
- -test -d $(DESTDIR)$(docexamplesdir)/$(imagedir) && \
- cd $(DESTDIR)$(docexamplesdir)/$(imagedir) && \
- for f in $(HTMLEXAMPLEIMAGEFILES); do \
+ -test -d $(DESTDIR)$(docexamplesdir)/$(imagedir) \
+ && cd $(DESTDIR)$(docexamplesdir)/$(imagedir) \
+ && for f in $(HTMLEXAMPLEIMAGEFILES); do \
$(RM) $$f; \
done
-rmdir $(DESTDIR)$(docexamplesdir)/$(imagedir)
@@ -464,14 +464,14 @@ endif
uninstall_doc_htmldoc:
if BUILD_HTML
- -test -d $(DESTDIR)$(htmldocdir) && \
- cd $(DESTDIR)$(htmldocdir) && \
- for f in $(HTMLDOCFILESALL); do \
+ -test -d $(DESTDIR)$(htmldocdir) \
+ && cd $(DESTDIR)$(htmldocdir) \
+ && for f in $(HTMLDOCFILESALL); do \
$(RM) $$f; \
done
- -test -d $(DESTDIR)$(htmldocdir)/$(imagedir) && \
- cd $(DESTDIR)$(htmldocdir)/$(imagedir) && \
- for f in $(HTMLDOCIMAGEFILES); do \
+ -test -d $(DESTDIR)$(htmldocdir)/$(imagedir) \
+ && cd $(DESTDIR)$(htmldocdir)/$(imagedir) \
+ && for f in $(HTMLDOCIMAGEFILES); do \
$(RM) $$f; \
done
-rmdir $(DESTDIR)$(htmldocdir)/$(imagedir)
@@ -613,8 +613,8 @@ clean_infodoc:
$(RM) $(doc_builddir)/groff.dvi
$(RM) -r $(doc_builddir)/groff.html.*
clean_otherdoc:
- -cd $(doc_builddir) && \
- $(RM) -r *.pdf *.html *.txt *.dvi *.t2p *.t2d
+ -cd $(doc_builddir) \
+ && $(RM) -r *.pdf *.html *.txt *.dvi *.t2p *.t2d
install-data-local: install_infodoc
install_infodoc: doc/groff.info