mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Fix pgindent of libpq-fe.h by hacking pgindent script.
Remove pgbench comment that was causing problems.
This commit is contained in:
@@ -1993,6 +1993,14 @@ do
|
||||
}
|
||||
else print $0;
|
||||
}' |
|
||||
# fix indenting of typedef caused by __cplusplus in libpq-fe.h
|
||||
(
|
||||
if echo "$FILE" | grep -q 'libpq-fe.h$'
|
||||
then sed 's/^[ ]*typedef enum/typedef enum/'
|
||||
else cat
|
||||
fi
|
||||
) |
|
||||
# end
|
||||
cat >/tmp/$$ && cat /tmp/$$ >"$FILE"
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user