git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd5b397)
Add support for #elif to pgrminclude.
2011年8月27日 13:24:27 +0000 (09:24 -0400)
2011年8月27日 13:25:19 +0000 (09:25 -0400)

diff --git a/src/tools/pginclude/pgrminclude b/src/tools/pginclude/pgrminclude
index 64d7ef719987d0389f4651a5489263201c4ec8f7..26a36c9a4a0952961f8b304d0f9a2699538cd1ef 100755 (executable)
--- a/src/tools/pginclude/pgrminclude
+++ b/src/tools/pginclude/pgrminclude
@@ -43,15 +43,16 @@ do
# preserve configure-specific includes
# these includes are surrounded by #ifdef's
grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
- egrep -q '^#if|^#else' && continue
+ egrep -q '^#if|^#else|^#elif' && continue
grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
- egrep -q '^#else|^#endif' && continue
+ egrep -q '^#else|^#elif|^#endif' && continue
# Remove all #if and #ifdef blocks because the blocks
# might contain code that is not compiled on this platform.
cat "$FILE" |
grep -v "^#if" |
grep -v "^#else" |
+ grep -v "^#elif" |
grep -v "^#endif" >/tmp/$$a
# set up initial file contents
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /