aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-01-17 00:53:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-01-17 00:53:11 +0000
commit116ba5d81438be59dd319c9732f1c8235457c69a (patch)
treec0cc32462a7d9f5b639a0870265d8b3cbdb2bdbf
parent90b883425a0c029bdef14ae4fabbeccfe74cdaf9 (diff)
downloadpostgresql-116ba5d81438be59dd319c9732f1c8235457c69a.tar.gz
postgresql-116ba5d81438be59dd319c9732f1c8235457c69a.zip
Update unused_oids script so it works with non-GNU awk --- /* ... */
comment style apparently isn't portable to other awks.
-rwxr-xr-xsrc/include/catalog/unused_oids7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/catalog/unused_oids b/src/include/catalog/unused_oids
index 14d72f0c173..91a2c847345 100755
--- a/src/include/catalog/unused_oids
+++ b/src/include/catalog/unused_oids
@@ -1,7 +1,7 @@
#!/bin/sh
# unused_oids
#
-# $Header: /cvsroot/pgsql/src/include/catalog/unused_oids,v 1.2 1998/12/31 20:09:49 momjian Exp $
+# $Header: /cvsroot/pgsql/src/include/catalog/unused_oids,v 1.3 2000/01/17 00:53:11 tgl Exp $
#
# finds blocks of oids that have not already been claimed by
# post_hackers for internal purposes. primarily useful for
@@ -16,7 +16,7 @@
# non-berkeley post_hackers should probably not try to use oids
# less than the highest one that comes with the distributed source.
#
-# run this script in src/backend/catalog.
+# run this script in src/include/catalog.
#
egrep '^DATA' pg_*.h | \
sed -e 's/^.*OID[^=]*=[^0-9]*//' -e 's/[^0-9].*$//' | \
@@ -37,5 +37,6 @@ BEGIN {
last = $1;
}
END {
- print last + 1, "-", 2^14-1; /* current BootstrapObjectIdData value */
+# 2^14-1 = current BootstrapObjectIdData value
+ print last + 1, "-", 2^14-1;
}'