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
a787b88e
Commit
a787b88e
authored
Oct 28, 1998
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate need for cpp-from-stdin by using a temp file.
parent
1f27facc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/backend/catalog/genbki.sh.in
src/backend/catalog/genbki.sh.in
+5
-4
src/backend/utils/Gen_fmgrtab.sh.in
src/backend/utils/Gen_fmgrtab.sh.in
+9
-5
No files found.
src/backend/catalog/genbki.sh.in
View file @
a787b88e
...
...
@@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
1 1998/10/14 16:05:01 thomas
Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
2 1998/10/28 19:38:46 tgl
Exp $
#
# NOTES
# non-essential whitespace is removed from the generated file.
...
...
@@ -18,7 +18,7 @@
# end can be changed into another awk script or something smarter..
#
#-------------------------------------------------------------------------
trap
"rm -f /tmp/genbki.tmp"
0 1 2 3 15
trap
"rm -f /tmp/genbki.tmp
/tmp/genbkitmp.c
"
0 1 2 3 15
# make sure it is empty
>
/tmp/genbki.tmp
...
...
@@ -261,8 +261,9 @@ END {
reln_open = 0;
}
}
'
|
\
@CPP@ @CPPSTDIN@
$BKIOPTS
|
\
'
>
/tmp/genbkitmp.c
@CPP@
$BKIOPTS
/tmp/genbkitmp.c |
\
sed
-e
'/^[ ]*$/d'
\
-e
's/[ ][ ]*/ /g'
||
exit
1
...
...
src/backend/utils/Gen_fmgrtab.sh.in
View file @
a787b88e
...
...
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.1
1 1998/10/26 01:04:04
tgl Exp $
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.1
2 1998/10/28 19:38:47
tgl Exp $
#
# NOTES
# Passes any -D options on to cpp prior to generating the list
...
...
@@ -40,6 +40,7 @@ done
INFILE
=
$1
RAWFILE
=
fmgr.raw
CPPTMPFILE
=
fmgrtmp.c
HFILE
=
fmgr.h
TABCFILE
=
fmgrtab.c
...
...
@@ -62,11 +63,14 @@ sed -e 's/^.*OID[^=]*=[^0-9]*//' \
-e
's/[ ]*).*$//'
|
\
awk
'
/^#/ { print; next; }
$4 == "11" { print; next; }'
|
\
@CPP@ @CPPSTDIN@
$BKIOPTS
|
\
$4 == "11" { print; next; }'
>
$CPPTMPFILE
@CPP@
$BKIOPTS
$CPPTMPFILE
|
\
egrep
'^[0-9]'
|
\
sort
-n
>
$RAWFILE
rm
-f
$CPPTMPFILE
#
# Generate fmgr.h
#
...
...
@@ -79,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
*
* Copyright (c) 1994, Regents of the University of California
*
*
$Id
: Gen_fmgrtab.sh.in,v 1.1
1 1998/10/26 01:04:04
tgl Exp $
*
$Id
: Gen_fmgrtab.sh.in,v 1.1
2 1998/10/28 19:38:47
tgl Exp $
*
* NOTES
* ******************************
...
...
@@ -193,7 +197,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
*
*
* IDENTIFICATION
*
$Header
: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.1
1 1998/10/26 01:04:04
tgl Exp $
*
$Header
: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.1
2 1998/10/28 19:38:47
tgl Exp $
*
* NOTES
*
...
...
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