Re: [HACKERS] pgaccess 0.98

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] pgaccess 0.98
Date: 1999-11-04 16:01:42
Message-ID: 199911041601.LAA22160@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > The tricky part is that pgaccess must know the 'wish' path that is
> > determined by configure, and the POSTGRESDIR path which comes from
> > Makefile.global, so I had to create a Makefile.in, and a pgaccess.sh.
> > Makefile.in is set a configure time, and pgaccess.sh is set at compile
> > time. The final script pgaccess has hardcoded in it the path to wish,
> > and the pgaccess directory inside the install directory.
>
> Hmm. There is a common trick to finding wish (and presumably other
> "shells") for a shell script; it involves an "exec" as the first
> executable line of the script. Did this just recently. I'll look it up
> when I get to work.
>

Yes, I know the trick, but since we are already doing the search in
configure, we may as well use it rather than doing a search for wish at
runtime. The reason is that we now have a WISH varible in
Makefile.global that can be set to any value the user wants. This makes
it consistent with the way we handle other tcl/tk things.

> Your path must of course be set properly; is that not acceptable?
> Can't we tolerate minor changes in wish version without
> rebuilding/reinstalling from Postgres sources??

It does not look for any particular version of wish, but just the first
wish in the path found by configure. However, it can be easily changed.
My Makefile.custom has WISH=another_path because I want wish8 and not
the wish that is first in the path.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 1999-11-04 16:09:00 Re: [HACKERS] Regression Testing on REL6_5_PATCHES
Previous Message Pedro J. Lobo 1999-11-04 15:59:31 Re: [HACKERS] PostgreSQL 6.5.3 built, but not released ...