mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Remove useless whitespace at end of lines
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# src/tools/pginclude/pgrminclude
|
||||
|
||||
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
|
||||
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
||||
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
||||
grep -v '\./postgres.h' |
|
||||
grep -v '\./pg_config.h' |
|
||||
grep -v '\./c.h' |
|
||||
@@ -14,7 +14,7 @@ do
|
||||
then IS_INCLUDE="Y"
|
||||
else IS_INCLUDE="N"
|
||||
fi
|
||||
|
||||
|
||||
# loop through all includes
|
||||
cat "$FILE" | grep "^#include" |
|
||||
sed 's/^#include[ ]*[<"]\([^>"]*\).*$/\1/g' |
|
||||
@@ -39,7 +39,7 @@ do
|
||||
|
||||
# remove defines from include files
|
||||
if [ "$IS_INCLUDE" = "Y" ]
|
||||
then cat "$FILE" | grep -v "^#if" | grep -v "^#else" |
|
||||
then cat "$FILE" | grep -v "^#if" | grep -v "^#else" |
|
||||
grep -v "^#endif" | sed 's/->[a-zA-Z0-9_\.]*//g' >/tmp/$$a
|
||||
else cat "$FILE" >/tmp/$$a
|
||||
fi
|
||||
|
Reference in New Issue
Block a user