Fix aix7_ppc_64 making script
$ make -j -s install
...
--- subprocess32, Linux only
/bin/sh: line 3: [: =: unary operator expected
--- stream
...
Greenplum Database installation complete.
When `$(BLD_ARCH)` is empty, the check becomes `[ = 'aix7_ppc_64' ]`, and gets
the unary operator expected error.
@@ -61,12 +61,11 @@ pygresql:
. $(prefix)/greenplum_path.sh && unset PYTHONHOME && \
if [ `uname -s` = 'HP-UX' ]; then \
cd $(PYLIB_SRC)/$(PYGRESQL_DIR) && DESTDIR="$(DESTDIR)" CC="$(CC)" LDFLAGS="-L../../../../gpAux/ext/hpux_ia64/python-2.5.6/lib" python setup.py build; \
- elif [ $(BLD_ARCH) = 'aix7_ppc_64' ]; then \
+ elif [ "$(BLD_ARCH)" = 'aix7_ppc_64' ]; then \
unset PYTHONPATH && cd $(PYLIB_SRC)/$(PYGRESQL_DIR) && DESTDIR="$(DESTDIR)" CC="$(CC)" python_64 setup.py build; \
else \
cd $(PYLIB_SRC)/$(PYGRESQL_DIR) && DESTDIR="$(DESTDIR)" CC="$(CC)" python setup.py build; \
fi
-
mkdir -p $(PYLIB_DIR)/pygresql
if [ `uname -s` = 'Darwin' ]; then \
cp -r $(PYLIB_SRC)/$(PYGRESQL_DIR)/build/lib.macosx*/* $(PYLIB_DIR)/pygresql; \
