Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com Date: Thu, 28 Mar 2002 15:44:44 +0100 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <186275042009.20020328154444@familiehaase.de> To: cygwin-apps AT cygwin DOT com, cygwin AT cygwin DOT com Subject: Re: "Install-Info" not found during installing CYGIN In-Reply-To: <3CA30DDC.D828F259@hack.kampbjorn.com> References: <3CA30DDC DOT D828F259 AT hack DOT kampbjorn DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 -- =^..^=