mirror of
https://github.com/postgres/postgres.git
synced 2025-05-25 00:04:05 -04:00
The reason to do this is that the old approach created an unnecessary diff against upstream where they had forgot SinglePartitionSpec in typedefs.list. Additionally add two new structs from our SMGR patch to the list.
24 lines
672 B
Bash
Executable File
24 lines
672 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR="$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)"
|
|
INSTALL_DIR="$SCRIPT_DIR/../../pginst"
|
|
cd "$SCRIPT_DIR/../"
|
|
|
|
if ! test -f combined.typedefs; then
|
|
echo "combined.typedefs doesn't exists, run dump-typedefs.sh first"
|
|
exit 1
|
|
fi
|
|
|
|
cd src/tools/pg_bsd_indent
|
|
make install
|
|
|
|
cd "$SCRIPT_DIR/.."
|
|
|
|
export PATH=$SCRIPT_DIR/../src/tools/pgindent/:$INSTALL_DIR/bin/:$PATH
|
|
|
|
# Check everything except pg_tde with the list in the repo
|
|
pgindent --typedefs=src/tools/pgindent/typedefs.list --excludes=<(echo "contrib/pg_tde") "$@" .
|
|
|
|
# Check pg_tde with the fresh list extraxted from the object file
|
|
pgindent --typedefs=combined.typedefs "$@" contrib/pg_tde
|