1
0
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:
Bruce Momjian
2005-11-23 04:23:30 +00:00
parent ce1d8293f0
commit aac96b8994
3 changed files with 12 additions and 5 deletions

View File

@@ -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