File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 10
10
#
11
11
#
12
12
# IDENTIFICATION
13
- # $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.1 1998/10/14 16:05:01 thomas Exp $
13
+ # $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.2 1998/10/28 19:38:46 tgl Exp $
14
14
#
15
15
# NOTES
16
16
# non-essential whitespace is removed from the generated file.
17
17
# if this is ever a problem, then the sed script at the very
18
18
# end can be changed into another awk script or something smarter..
19
19
#
20
20
# -------------------------------------------------------------------------
21
- trap " rm -f /tmp/genbki.tmp" 0 1 2 3 15
21
+ trap " rm -f /tmp/genbki.tmp /tmp/genbkitmp.c " 0 1 2 3 15
22
22
23
23
# make sure it is empty
24
24
> /tmp/genbki.tmp
@@ -261,8 +261,9 @@ END {
261
261
reln_open = 0;
262
262
}
263
263
}
264
- ' | \
265
- @CPP@ @CPPSTDIN@ $BKIOPTS | \
264
+ ' > /tmp/genbkitmp.c
265
+
266
+ @CPP@ $BKIOPTS /tmp/genbkitmp.c | \
266
267
sed -e ' /^[ ]*$/d' \
267
268
-e ' s/[ ][ ]*/ /g' || exit 1
268
269
Original file line number Diff line number Diff line change 8
8
#
9
9
#
10
10
# IDENTIFICATION
11
- # $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
11
+ # $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.12 1998/10/28 19:38:47 tgl Exp $
12
12
#
13
13
# NOTES
14
14
# Passes any -D options on to cpp prior to generating the list
40
40
41
41
INFILE=$1
42
42
RAWFILE=fmgr.raw
43
+ CPPTMPFILE=fmgrtmp.c
43
44
HFILE=fmgr.h
44
45
TABCFILE=fmgrtab.c
45
46
@@ -62,11 +63,14 @@ sed -e 's/^.*OID[^=]*=[^0-9]*//' \
62
63
-e ' s/[ ]*).*$//' | \
63
64
awk '
64
65
/^#/ { print; next; }
65
- $4 == "11" { print; next; }' | \
66
- @CPP@ @CPPSTDIN@ $BKIOPTS | \
66
+ $4 == "11" { print; next; }' > $CPPTMPFILE
67
+
68
+ @CPP@ $BKIOPTS $CPPTMPFILE | \
67
69
egrep ' ^[0-9]' | \
68
70
sort -n > $RAWFILE
69
71
72
+ rm -f $CPPTMPFILE
73
+
70
74
#
71
75
# Generate fmgr.h
72
76
#
@@ -79,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
79
83
*
80
84
* Copyright (c) 1994, Regents of the University of California
81
85
*
82
- * $Id : Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
86
+ * $Id : Gen_fmgrtab.sh.in,v 1.12 1998/10/28 19:38:47 tgl Exp $
83
87
*
84
88
* NOTES
85
89
* ******************************
@@ -193,7 +197,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
193
197
*
194
198
*
195
199
* IDENTIFICATION
196
- * $Header : /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.11 1998/10/26 01:04:04 tgl Exp $
200
+ * $Header : /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.12 1998/10/28 19:38:47 tgl Exp $
197
201
*
198
202
* NOTES
199
203
*
You can’t perform that action at this time.
0 commit comments