Subject: Re: "Install-Info" not found during installing CYGIN
From: "Gerrit P. Haase" <[email-masked]>
To: [email-masked], [email-masked]
Date: Thu, 28 Mar 2002 15:44:44 +0100

Hack wrote:

[...]

> Note this doesn't happen for wget. I've just checked.

[...]

> As you can see in /etc/postinstall/wget.sh.done when wget is
> installed/updated it will install the info files only if texinfo is
> already installed (wget does not depend/require texinfo). Otherwise it's
> texinfo's postinstall job to update the dir info.

> #!/bin/sh

> VERSION=1.8.1-1
> INFODIR=/usr/info
> INSTALLINFO=/usr/bin/install-info

> if [ -x ${INSTALLINFO} -a -f ${INFODIR}/wget.info ] ; then
>     ${INSTALLINFO} --dir-file=${INFODIR}/dir ${INFODIR}/wget.info
> fi

> if [ ! -f /etc/wgetrc ] ; then
>     cp /usr/doc/wget-${VERSION}/sample.wgetrc /etc/wgetrc
> fi

Great;)  We should all use some general purpose install script
like this I scribbled for indent now, so one needs only to change
the name of the package/info-file and it fits (for the .info part):

#!/bin/sh

PACKAGE=indent
INFOFILE=${PACKAGE}.info
INFODIR=/usr/info
INSTALLINFO=/usr/bin/install-info

if [ -x ${INSTALLINFO} -a -f ${INFODIR}/${INFOFILE} ] ; then
    ${INSTALLINFO} --dir-file=${INFODIR}/dir ${INFODIR}/${INFOFILE}
fi

Gerrit
-- 
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/