From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | initdb.sh fix... |
Date: | 2000-10-29 03:49:52 |
Message-ID: | 20001028224952.A12576@lerami.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Someone's been spending too much time on C code...
the current initdb.sh uses == which doesn't work.
Here's a patch:
Index: initdb.sh
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/initdb.sh,v
retrieving revision 1.107
diff -c -r1.107 initdb.sh
*** initdb.sh 2000/10/28 22:14:14 1.107
--- initdb.sh 2000/10/29 03:49:36
***************
*** 109,119 ****
if [ x"$self_path" != x"" ] \
&& [ -x "$self_path/postgres" ] \
! && [ x"`$self_path/postgres --version 2>/dev/null`" == x"postgres (PostgreSQL) $VERSION" ]
then
PGPATH=$self_path
elif [ -x "$bindir/postgres" ]; then
! if [ x"`$bindir/postgres --version 2>/dev/null`" == x"postgres (PostgreSQL) $VERSION" ]
then
PGPATH=$bindir
else
--- 109,119 ----
if [ x"$self_path" != x"" ] \
&& [ -x "$self_path/postgres" ] \
! && [ x"`$self_path/postgres --version 2>/dev/null`" = x"postgres (PostgreSQL) $VERSION" ]
then
PGPATH=$self_path
elif [ -x "$bindir/postgres" ]; then
! if [ x"`$bindir/postgres --version 2>/dev/null`" = x"postgres (PostgreSQL) $VERSION" ]
then
PGPATH=$bindir
else
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2000-10-29 11:43:05 | Re: initdb.sh fix... |
Previous Message | Larry Rosenman | 2000-10-29 03:38:28 | Re: more multibyte/After TGL... |