On Mon, Sep 27, 1999 at 11:19:05PM +0200, [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]>
>   --[ get my public pgp key at http://www.freeweb.org/free/cavok/
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

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        <[EMAIL PROTECTED]>           <><  *
* -------------------- * -----------------------------------------------*
* Debian Developer, Debian Project Secretary, Debian Webmaster          *
* <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>  *
* <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>   *
=========================================================================

Attachment: pgpHnbTlwJ7qF.pgp
Description: PGP signature

Reply via email to