delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/24/12:05:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 24 Nov 2004 12:05:34 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Harig, Mark" <maharig AT idirect DOT net>
cc: cygwin AT cygwin DOT com
Subject: RE: Upgraded man command
In-Reply-To: <BADF3C947A1BD54FBA75C70C241B0B9E01459C01@ex02.svr.idirect.net>
Message-ID: <Pine.GSO.4.61.0411241203200.14489@slinky.cs.nyu.edu>
References: <BADF3C947A1BD54FBA75C70C241B0B9E01459C01 AT ex02 DOT svr DOT idirect DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 24 Nov 2004, Harig, Mark wrote:

> > Possibly, the following code in /etc/postinstall/man.sh
> > should be changed:
> >
> >    if [ ! -e ${datadir}/misc/man.conf ] ; then
> >       cp ${datadir}/misc/man.conf.default ${datadir}/misc/man.conf
> >       chmod 644 ${datadir}/misc/man.conf
> >    fi
> >
> > to:
> >
> >    if [ ! -e ${datadir}/misc/man.conf ] ; then
> >       chmod 644 ${datadir}/misc/man.conf
> >       cp ${datadir}/misc/man.conf.default ${datadir}/misc/man.conf
> >    fi
>
> Actually, this suggestion does not help because of
> the 'if [ ! -e ${datadir}/misc/man.conf ]' guard.
>
> My "old" man.conf was obsolete (had errors), but it
> was the default at the time (I have never changed it).
>
> Other users may run into this problem and need to apply
> the suggested fix (i.e., overwrite /usr/share/misc/man.conf
> with /usr/share/misc/man.conf.default, after adding write
> permission to /usr/share/misc/man.conf).

There's always the solution that base-files uses for replacing various
config files -- it checks whether the file is the same as the default in
the preremove script, and erases it if so.  Then the postinstall script
copies the new default, and the config file is up-to-date.  This won't
work if the users edited their config files, but should work in most
cases.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019