mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 10:33:27 +08:00
The C source files can now be formatted with pgindent using a new CMake build target. The location of pgindent and dependencies are auto-discovered by CMake or can be overridden on the command line.
17 lines
627 B
Bash
Executable File
17 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TMPDIR=${TMPDIR:-$(mktemp -d 2>/dev/null || mktemp -d -t 'timescaledb_typedef')}
|
|
|
|
trap cleanup EXIT
|
|
|
|
cleanup() {
|
|
rm -rf ${TMPDIR}
|
|
}
|
|
|
|
@OBJDUMP@ -W @CMAKE_BINARY_DIR@/src/CMakeFiles/timescaledb.dir/*.o |egrep -A3 DW_TAG_typedef |perl -e 'while (<>) { chomp; @flds = split;next unless (1 < @flds);\
|
|
next if $flds[0] ne "DW_AT_name" && $flds[1] ne "DW_AT_name";\
|
|
next if $flds[-1] =~ /^DW_FORM_str/;\
|
|
print $flds[-1],"\n"; }' |sort |uniq > ${TMPDIR}/typedefs.list.local
|
|
wget -q -O - "http://www.pgbuildfarm.org/cgi-bin/typedefs.pl?branch=HEAD" |\
|
|
cat - ${TMPDIR}/typedefs.list.local | sort | uniq
|