[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/share/doc?



On Mon, Sep 27, 1999 at 11:19:05PM +0200, cavok@tech.netway.it wrote:
> On Mon, Sep 27, 1999 at 03:35:12PM -0400, Peter S Galbraith wrote:
> >  
> >    package itself due to problems with dpkg. One reasonable way to accomplish
> >    this is to put the following in the package's postinst:
> >    
> >    if [ "$1" = "configure" ]; then
> >          if [ -d /usr/doc -a ! -e /usr/doc/#PACKAGE# -a -d /usr/share/doc/#PACKAGE# ]; then
> >                  ln -sf ../share/doc/#PACKAGE# /usr/doc/#PACKAGE#
> >          fi
> >    fi
> >    
> >    And the following in the package's prerm:
> >    
> >    if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/#PACKAGE# ]; then
> >          rm -f /usr/doc/#PACKAGE#
> >    fi
> >  
> ok, that stuff sounds good, does work but lintian doesn't like it.
> lintian prefers a naked rm -f in prerm.
> 
> what to do?
> 
> 
> -----[ Domenico Andreoli, aka cavok <cavok@freemail.it>
>   --[ get my public pgp key at http://www.freeweb.org/free/cavok/
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

As of the latest upload of lintian, it does not like shell variables in the
place of the package name.. it looks for "\w+" after the "/usr/doc/"
-- 
Please cc all mailing list replies to me, also.
=========================================================================
* http://benham.net/index.html        <gecko@benham.net>           <><  *
* -------------------- * -----------------------------------------------*
* Debian Developer, Debian Project Secretary, Debian Webmaster          *
* <gecko@debian.org> <secretary@debian.org> <lintian-maint@debian.org>  *
* <webmaster@debian.org> <gecko@fortunet.com> <webmaster@spi-inc.org>   *
=========================================================================

Attachment: pgpPQV0zjhKMG.pgp
Description: PGP signature


Reply to: