This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin-doc


From: "Joshua Daniel Franklin" <joshuadfranklin@yahoo.com>
To: "Michael A Chase" <mchase@ix.netcom.com>; <cygwin-apps@cygwin.com>
Sent: Saturday, April 13, 2002 09:48
Subject: Re: cygwin-doc


> Thanks, I fixed this. (Well, I fixed intro.1, which I assume you meant.)

It was.

Man puts a preprocessed copy of /usr/man/man1/*.1 pages in /usr/man/cat1/
when it displays them.  I had to delete cat1/intro.1.gz before man would
look at the version of intro.1 I copied from the source package into man1/.
Cygwin-doc may need to delete its files from cat1/ in its postinstall
script; man will update the cat1/ file automatically if the file in man1/ is
newer, but that may not be true if someone reads a manpage after cygwin-doc
is updated and before they install the new version.

# This should do what is necessary:
pkg=cygwin-doc
for i in $(gzip -dc < /etc/setup/$pkg.lst.gz | sed -ne
's,/man1/\(.*\.1$\),/cat1/\1.gz,p')
do
    if [ -f "/$i" ]; then
        rm -f /$i
    fi
done

Both gzip and sed are in the Base package, so they should be present.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]