Fix pgrminclude regex pattern.
authorBruce Momjian <bruce@momjian.us>
Fri, 26 Aug 2011 14:32:26 +0000 (10:32 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 26 Aug 2011 14:33:18 +0000 (10:33 -0400)
src/tools/pginclude/pgrminclude

index ba13c4a7a727e3c18adf3dd189827b0396d2994c..e0173fdc5f2a0457ae881dcd452288274c821522 100755 (executable)
@@ -13,7 +13,7 @@ while read FILE
 do
         # Skip files with #if and #ifdef blocks because the blocks
        # might contain code that is not compiled on this platform.
-   grep -q '^if' "$FILE" && continue
+   grep -q '^#if' "$FILE" && continue
 
    if [ `expr $FILE : '.*\.h$'` -ne 0 ]
    then    IS_INCLUDE="Y"