couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [1/2] documentation commit: updated refs/heads/master to 57a65ef
Date Tue, 15 Sep 2015 14:55:24 GMT
Repository: couchdb-documentation
Updated Branches:
  refs/heads/master a3101e9af -> 57a65effe


Fix bashism in Makefile

The [[ operator is a bashism, and fails with POSIX shells (such as dash),
replace it with a simplier version that does the same thing, without the
unnecessary $(shell) nesting.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/e31ad61f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/e31ad61f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/e31ad61f

Branch: refs/heads/master
Commit: e31ad61f86d97f6005a0cc35347159823e0855a8
Parents: ddf2481
Author: Micah Anderson <micah@riseup.net>
Authored: Tue Sep 15 10:48:31 2015 -0400
Committer: Micah Anderson <micah@riseup.net>
Committed: Tue Sep 15 10:49:07 2015 -0400

----------------------------------------------------------------------
 Makefile | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/e31ad61f/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index a36345c..03ee668 100644
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,7 @@ PAPERSIZE    := -D latex_paper_size=a4
 SPHINXFLAGS  := -a -W -n -A local=1 $(PAPERSIZE) -d $(BUILDDIR)/doctree
 SPHINXOPTS   := $(SPHINXFLAGS) $(SOURCE)
 
-ENSURECMD=\
-if [[ $(shell which $(1) > /dev/null 2>&1; echo $$?) -eq 1 ]]; then \
-  echo "*** Make sure that $(1) is installed and on your path" && exit 1; \
-fi
-
+ENSURECMD=which $(1) > /dev/null 2>&1 || (echo "*** Make sure that $(1) is installed
and on your path" && exit 1)
 
 all: html pdf info man
 


Mime
View raw message