Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4399e817
Commit
4399e817
authored
Aug 26, 2011
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In pgrminclude, make skipped include names constent and skip files with
#if/#ifdefs.
parent
eb013ede
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/tools/pginclude/pgrminclude
src/tools/pginclude/pgrminclude
+6
-1
No files found.
src/tools/pginclude/pgrminclude
View file @
4399e817
...
...
@@ -6,10 +6,15 @@
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 |
grep -v '\./postgres.h' |
grep -v '\./postgres_fe.h' |
grep -v '\./pg_config.h' |
grep -v '\./c.h' |
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
if [ `expr $FILE : '.*\.h$'` -ne 0 ]
then IS_INCLUDE="Y"
else IS_INCLUDE="N"
...
...
@@ -27,7 +32,7 @@ do
[ -s /usr/include/$INCLUDE ] && continue
[ "$INCLUDE" = postgres.h ] && continue
[ "$INCLUDE" = postgres_fe.h ] && continue
[ "$INCLUDE" = config.h ] && continue
[ "$INCLUDE" =
pg_
config.h ] && continue
[ "$INCLUDE" = c.h ] && continue
# preserve configure-specific includes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment