On 2/8/07, Matthew Burgess <[EMAIL PROTECTED]> wrote:
> On Thursday 08 February 2007 20:40, steve crosby wrote:
> >
> > The change to "actual binaries" are really just shell script wrappers
> > - and they all add the following to the start of each script
> >
> >   PATH="${GZIP_BINDIR-'/usr/bin'}:$PATH"; export PATH
> >
> > and then call gzip with the appropriate command line options. since we
> > pass prefix=/usr, the make install portion adds the /usr/bin, even
> > though we then move gzip to /bin.
>
> Well, we can fine tune the installation of the files.  We could:
>
> ./configure --prefix='' --datarootdir=/usr/share
> make
> make check
> make install
> mv -v /bin/{gzexe,zcmp,zdiff,zegrep,zfgrep,zforce,zgrep,zless,zmore,znew} 
> /usr/bin

Nitpicking, but wouldn't it clearer to do "./configure --prefix=/usr
--bindir=/bin" in this case? The mv wouldn't change, but it makes it
clearer that the intended effect is to put the binaries in /bin, not
make the prefix /.

> That installs gzip, gunzip and zcat in /bin, the other binaries in /usr/bin
> and all the docs in /usr/share.  It also results in the following headers in
> the shell script wrappers:
>
> PATH="${GZIP_BINDIR-'/bin'}:$PATH"; export PATH
>
> I personally think that's much cleaner than `sed'ing makefiles and the like.
> What do you think?

I agree.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to