19
19
INTENTIONALLY_NOT_INCLUDED=" pre_auth_delay lc_messages lc_monetary\
20
20
lc_time lc_numeric fixbtree"
21
21
22
- # self_path stolen from pg_ctl
23
- self_path=` echo" $0 " | sed' s,/[^/]*$,,' ` # (dirname command is not portable)
24
- PATH_TO_GUC=" $self_path "
25
-
26
22
# ## What options are listed in postgresql.conf.sample, but don't appear
27
23
# ## in guc.h?
28
24
29
25
# grab everything that looks like a setting and convert it to lower case
30
- SETTINGS=` grep' =' $PATH_TO_GUC / postgresql.conf.sample| grep -v' ^#' | \
26
+ SETTINGS=` grep' =' postgresql.conf.sample| grep -v' ^#' | \
31
27
sed -e' s/^#//' | awk' {print $1}' `
32
28
SETTINGS=` echo" $SETTINGS " | tr' A-Z' ' a-z' `
33
29
@@ -40,7 +36,7 @@ for i in $SETTINGS ; do
40
36
fi
41
37
done
42
38
if [" 0" = " $hidden " ]; then
43
- grep -i$i $PATH_TO_GUC / guc.c> /dev/null;
39
+ grep -i$i guc.c> /dev/null;
44
40
if [! $? = 0 ]; then
45
41
echo " $i seems to be missing from guc.c" ;
46
42
fi ;
52
48
53
49
# grab everything that looks like a setting and convert it to lower case
54
50
55
- SETTINGS=` grep' { .*PGC_' $PATH_TO_GUC / guc.c| awk' {print $2}' | \
51
+ SETTINGS=` grep' { .*PGC_' guc.c| awk' {print $2}' | \
56
52
sed -e' s/"//g' -e' s/,//' `
57
53
SETTINGS=` echo" $SETTINGS " | tr' A-Z' ' a-z' `
58
54
@@ -64,7 +60,7 @@ for i in $SETTINGS ; do
64
60
fi
65
61
done
66
62
if [" 0" = " $hidden " ]; then
67
- grep -i$i $PATH_TO_GUC / postgresql.conf.sample> /dev/null;
63
+ grep -i$i postgresql.conf.sample> /dev/null;
68
64
if [! $? = 0 ]; then
69
65
echo " $i seems to be missing from postgresql.conf.sample" ;
70
66
fi