delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/05/07:04:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type:content-transfer-encoding; q=dns; s=default; b=x3e
BxyrP0Jx5SMRuK2fY1Vyu/TqhoHw+zrGv8bgNrjvjzgBoWp6Ef2aMaE1aCPYFInd
TLnpKNFkpbqDmxtZsSUZHXcEGg0PGPpveFqUh70QXlCdROLoMX9rBX+3njNx2LjH
8ln3bgbUdjsOXf20/63BOJnXQG8NHeK9I1YunEBI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type:content-transfer-encoding; s=default; bh=qHz1BjLE9
iCDET0ttivvhVQ27ZQ=; b=cuiB1R3XxcTSmyw0V0Jz8fQaiZLrdwQsrSfTaZox1
z0rYQuvj0TFPQsy/JXxz51GPF2IlLN+cUO515d9ylfSffuqoM+dFlnv4E9qFMKxR
88hkfuGbPzxaBtySjCpxc/edIyNpDwpYbOd59NhQ7OnbIp3Rorp/DSFXd9mpkqEO
HA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2
X-HELO: mail-vb0-f54.google.com
X-Received: by 10.52.162.66 with SMTP id xy2mr5502623vdb.3.1378379056384; Thu, 05 Sep 2013 04:04:16 -0700 (PDT)
MIME-Version: 1.0
From: Thiers Botelho <thiersb AT gmail DOT com>
Date: Thu, 5 Sep 2013 08:03:56 -0300
Message-ID: <CAFWZbCyU1r==KvswiUoSmfjsuDnQaVYzNvAOfHkbmmuVj=wAmA@mail.gmail.com>
Subject: Re: Fwd: INFO issues [partially SOLVED]
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r85B4Vko008386

NOTE: I'm replying from the digest, so in case the list does not hook
up the appropriate reference pointers, here they are:

1. http://cygwin.com/ml/cygwin/2013-09/msg00024.html
2.http://cygwin.com/ml/cygwin/2013-09/msg00031.html


On Tue, Sep 3, 2013 at 5:18 PM, <cygwin-digest-help AT cygwin DOT com> wrote:

> From: Ken Brown <kbrown AT cornell DOT edu>
> To: cygwin AT cygwin DOT com
> Cc:
> Date: Mon, 02 Sep 2013 20:29:27 -0400
> Subject: Re: Fwd: INFO issues
> On 9/2/2013 11:36 AM, Thiers Botelho wrote:
>>
>> Hi all,
>>
>> I'm a new user of CygWin and a former user of some Linux distros.
>>
>> I'm having the following issue with the 'info' command:
>>
>> thiers AT Win-Samsung ~
>> $ info
>> info: dir: No such file or directory
>>
>> I did some searches, but really... searching stuff where 'info' is the
>> keyword is bound to, and DOES, return a lot of useless 'info'...
>>
>> I've searched the CygWin mailing list; what I've got is the
>> not-so-clear suspicion that I need to 'install' something. Here are
>> the closest leads I've got - they're 13 years old:
>>
>> https://sourceware.org/ml/cygwin/2000-05/msg00005.html
>> ### this guy had the same issue I'm having.
>>
>> https://sourceware.org/ml/cygwin/2000-05/msg00126.html
>> ### then this guy suggested running some kind of hand-made script (not
>> really meaningful to me) around the install-info command (which indeed
>> exists in my CygWin folder)
>>
>> https://sourceware.org/ml/cygwin/2000-05/msg00184.html
>> ### and this other guy suggested using command 'gen-dir-node' (which I
>> didn't find in my CygWin build).
>>
>> So what I'd like to know is, are there any clear instructions
>> somewhere about how to make the 'info' command work properly under
>> Cygwin ??
>
>
> There's a postinstall script called 'update-info-dir.sh' which is supposed to get run automatically by setup.exe to create the info directory.  If this didn't happen for some reason, you can run it manually.  (Look for it in /etc/postinstall.)  In case you don't have it, here are the contents:
>
> #!/bin/bash
> rm -f /usr/info/dir.info /usr/share/info/dir.info /usr/info/dir /usr/share/info/dir
> for d in /usr/info /usr/share/info; do
>     for f in $d/*; do
>         case "$f" in
>             *\**)
>                 ;;
>             */dir|*/dir.info*)
>                 ;;
>             *-[0123456789]*)
>                 ;;
>             *)
>                 install-info --quiet $f /usr/share/info/dir ||
>                 install-info  --quiet --entry="* $f ($f): $f" $f /usr/share/info/dir
>                 ;;
>         esac
>     done
> done >/dev/null 2>&1
>
> Ken
>

Thx a lot Ken - that did it. INFO command now works properly !

And now that begs a follow-up question...

After some digging around about how the post-install scripts work in
CygWin, and doing some complementary testing, it seems that, every
time that CygWin Setup runs, the script will be run once and then
renamed with a '.done' suffix. So that, if I want the script to run
every time that Setup runs, I have to remember to manually rename it
back to '.sh' after each setup run, which is, erm, sub-optimal.

Any ideas about getting around this repeated manual renaming ???

Thx and cheers

Thiers

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


- Raw text -


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