[16154] in Athena Bugs
Re: athdir
daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Aug 13 16:03:42 1998
Date: Thu, 13 Aug 1998 16:03:40 -0400 (EDT)
From: Greg Hudson <ghudson@MIT.EDU>
To: Joseph Sokol-Margolis <seph@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: "[16137] in Athena Bugs"
> I was recently building some software for a locker, and after reading
> lockers(7) and athdir(1) thought that using athdir would be the right
> thing to use with configure:
> ./configure --bindir=`athdir ${LOCKER} bin`
> However, athdir returns "" if the directory does not exist
I should probably get bugs in mail. athdir can do one of two things,
one of which hasn't been mentioned:
* It can return the best existing binary directory in a
locker.
* It can return the "canonical" binary directory for a locker,
without regard to the locker's current state, if you give it
the -c flag.
I guess in this case you want athdir to fall back to the -c behavior
if there is no existing binary directory. I'm not sure if that's a
good enough idea to add a new option for.