mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove whitespace from end of lines
pgindent and perltidy should clean up the rest.
This commit is contained in:
@@ -43,7 +43,7 @@ verbose_output() {
|
||||
|
||||
process_includes_in_file() {
|
||||
# loop through all includes mentioned in the file
|
||||
cat "$FILE" |
|
||||
cat "$FILE" |
|
||||
grep "^#include\>" |
|
||||
grep -v '/\* *pgrminclude *ignore *\*/' |
|
||||
sed 's/^#include[ ]*[<"]\([^>"]*\).*$/\1/g' |
|
||||
@@ -80,7 +80,7 @@ compile_file() {
|
||||
grep -v "^#else" |
|
||||
grep -v "^#elif" |
|
||||
grep -v "^#endif" |
|
||||
# with #if blocks gone, now undef #defines to avoid redefine
|
||||
# with #if blocks gone, now undef #defines to avoid redefine
|
||||
# warning and failure
|
||||
sed 's/#define[ ][ ]*\([A-Za-z0-9_]*\).*$/#undef \1\n&/' >/tmp/$$a
|
||||
|
||||
@@ -121,7 +121,7 @@ compile_file() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Process include files first because they can affect the compilation
|
||||
# Process include files first because they can affect the compilation
|
||||
# of *.c files.
|
||||
(find . \( -name .git -a -prune \) -o -type f -name '*.h' -print | sort;
|
||||
find . \( -name .git -a -prune \) -o -type f -name '*.c' -print | sort) |
|
||||
|
Reference in New Issue
Block a user