mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
The meson and the make scripts had diverged a lot, so this commit fixes that plus some other inconsistencies.
27 lines
549 B
Bash
Executable File
27 lines
549 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ENABLE_COVERAGE=
|
|
|
|
for arg in "$@"
|
|
do
|
|
case "$arg" in
|
|
--enable-coverage)
|
|
ENABLE_COVERAGE="--enable-coverage"
|
|
shift;;
|
|
esac
|
|
done
|
|
|
|
SCRIPT_DIR="$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)"
|
|
INSTALL_DIR="$SCRIPT_DIR/../../pginst"
|
|
source "$SCRIPT_DIR/env.sh"
|
|
|
|
cd "$SCRIPT_DIR/.."
|
|
|
|
if [ "$1" = "debugoptimized" ]; then
|
|
export CFLAGS="-O2"
|
|
export CXXFLAGS="-O2"
|
|
fi
|
|
|
|
./configure --prefix="$INSTALL_DIR" --enable-debug --enable-cassert --enable-tap-tests $ENABLE_COVERAGE
|
|
make install-world -j
|