1919INTENTIONALLY_NOT_INCLUDED=" pre_auth_delay lc_messages lc_monetary\
2020lc_time lc_numeric fixbtree"
2121
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-
2622# ## What options are listed in postgresql.conf.sample, but don't appear
2723# ## in guc.h?
2824
2925# 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' ^#' | \
3127 sed -e' s/^#//' | awk' {print $1}' `
3228SETTINGS=` echo" $SETTINGS " | tr' A-Z' ' a-z' `
3329
@@ -40,7 +36,7 @@ for i in $SETTINGS ; do
4036fi
4137done
4238if [" 0" = " $hidden " ]; then
43- grep -i$i $PATH_TO_GUC / guc.c> /dev/null;
39+ grep -i$i guc.c> /dev/null;
4440if [! $? = 0 ]; then
4541echo " $i seems to be missing from guc.c" ;
4642fi ;
5248
5349# grab everything that looks like a setting and convert it to lower case
5450
55- SETTINGS=` grep' { .*PGC_' $PATH_TO_GUC / guc.c| awk' {print $2}' | \
51+ SETTINGS=` grep' { .*PGC_' guc.c| awk' {print $2}' | \
5652 sed -e' s/"//g' -e' s/,//' `
5753SETTINGS=` echo" $SETTINGS " | tr' A-Z' ' a-z' `
5854
@@ -64,7 +60,7 @@ for i in $SETTINGS ; do
6460fi
6561done
6662if [" 0" = " $hidden " ]; then
67- grep -i$i $PATH_TO_GUC / postgresql.conf.sample> /dev/null;
63+ grep -i$i postgresql.conf.sample> /dev/null;
6864if [! $? = 0 ]; then
6965echo " $i seems to be missing from postgresql.conf.sample" ;
7066fi