Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <41694D58.6080201@x-ray.at>
Date: Sun, 10 Oct 2004 16:55:20 +0200
From: Reini Urban <rurban@x-ray.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: PostInstallLast addons?
References: <4162386A.1080009@pastornet.net.au> <20041005084757.GK6702@cygbert.vinschen.de> <opsfkud1qltsbnf7@c500> <ck922h$5dm$2@sea.gmane.org> <41681FAE.7050508@x-ray.at> <20041009201936.GA11424@trixie.casa.cgf.cx> <1097371147.11430.206127296@webmail.messagingengine.com> <20041010030550.GA14377@trixie.casa.cgf.cx> <4168F7CE.2080504@robinbowes.com>
In-Reply-To: <4168F7CE.2080504@robinbowes.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Robin Bowes schrieb:
> Christopher Faylor wrote:
>> On Sat, Oct 09, 2004 at 06:19:07PM -0700, Lex Ein wrote:
>>> "Cygwin Setup - Finish
>>>
>>> Create icons    Have setup create icons for easy access to the Cygwin 
>>> environment.    [ ] Create icon on _Desktop    [ ] Add icon to _Start 
>>> Menu
>>> Optional tasks - (may take many minutes!)
>>>    [ ] Build database (makewhatis) of man page short descriptions for
>>>    'whatis' & 'apropos'.
>>>    [ ] Build database (updatedb) of file names for 'locate'.
>>>
>>> Display README information at exit.    [ ] Display 
>>> /usr/share/doc/Cygwin/ directory of README files.
>>
>> I think that's a very good idea.  It would need to be conditional on the
>> existence of man and, I guess, find, though.
> 
> In the context of some of the earlier posts in this thread, can I 
> suggest that the wording is a little less daunting to those not familiar 
> with nuix/cygwin. OK, so "Build database (makewhatis) of man page short 
> descriptions for 'whatis' & 'apropos'" may be technically correct, but 
> wouldn't something like this be more "helpful":
> 
>   Optional tasks - (may take many minutes!)
>     [ ] Build help index (used by 'whatis' and 'apropos' commands)
>     [ ] Build file index (used by 'locate' command)

       [ ] Update help index (used by 'whatis' and 'apropos' commands)
       [ ] Update file index (used by 'locate' command)

But all this would a non-issue if we would create these new commands or 
functionality. Then no setup changes would be needed.
* updatewhatis which gets the filelist of the new man files.
* updatedb which should accept a new argument for the package MANIFEST
   to be merged into. Easier just a removal <MANIFEST> and add <MANIFEST>
   option.

On unix it's a non-issue because they have faster forks and esp.
faster filesystems.

$ time makewhatis

real    16m6.209s
user    7m56.942s
sys     2m38.845s

$ time updatedb
/usr/bin/find: /.ssh: Permission denied
/usr/bin/find: Fehler in /etc/mtab: /a.: No such file or directory

real    2m22.452s
user    0m0.674s
sys     0m0.636s

BTW, a nice locate bug eh. algorithmic issue (problematic trigram):

$ locate xx
/bin/cygdb_cxx-3.1.dll
/bin/cygdb_cxx-4.1.dll
/bin/cygdb_cxx-4.2.dll
/bin/cyggmpxx-3.dll
/bin/xxd.exe

$ which /bin/xxd.exe
/bin/xxd.exe: Command not found.

$ ls /bin/??x.exe
/bin/osx.exe  /bin/ptx.exe  /bin/rdx.exe  /bin/tex.exe  /bin/upx.exe

But I'm just too busy right now for this. I have to bring out a new 
release and search for another libtool bug.
Besides the pet cygwin projects.
-- 
Reini Urban
http://phpwiki.org/

--
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/

