提交 e1cfb8c1 编写于 作者: G Georgios Kokolatos

Correct a minor error in gpMgmt Makefile

Makefiles use sh as shell by default unless ${SHELL} is set. This leads
conditionals expressed in '[[...]]' to not be portable. For example in ubuntu
the following error is emitted during install:
	/bin/sh: 1: [[: not found

Use the more portable '[...] && [...]' yet more cumbersome syntax.

(cherry picked from commit 8181972e)
上级 aae21588
......@@ -19,7 +19,7 @@ installdirs:
install: stream installdirs
$(INSTALL_PROGRAM) stream$(X) '$(DESTDIR)$(bindir)/lib/stream$(X)'
# Symlink bin/lib/stream to bin/stream to maintain backward compatibility
if [[ ! -f $(DESTDIR)$(bindir)/stream/stream$(X) && ! -L $(DESTDIR)$(bindir)/stream/stream$(X) ]]; then \
if [ ! -f $(DESTDIR)$(bindir)/stream/stream$(X) ] && [ ! -L $(DESTDIR)$(bindir)/stream/stream$(X) ]; then \
$(LN_S) $(DESTDIR)$(bindir)/lib/stream$(X) $(DESTDIR)$(bindir)/stream/stream$(X); \
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册