This is the mail archive of the cygwin 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: INFO Death


> -----Original Message-----
> From: cygwin-owner On Behalf Of Gerrit P. Haase
> Sent: 03 November 2004 09:31

> Arthur I Schwarz wrote:

> > Symptoms:
> >    >> info info
> >    info: dir: No such file or directory
> 
> Reinstall the _update_info_dir package or run:
> $ sh /etc/postinstall/update-info-dir.sh.done


  Hey!  That script's a bit harsh:

-------------------------<snip!>-------------------------
dk@mace /artimi> cat /etc/postinstall/update-info-dir.
sh.done
#!/bin/sh
rm -f /usr/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
-------------------------<snip!>-------------------------

because surely that means that if you've got lots of dirs in your $INFOPATH,
e.g. 

> INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autoto
> ol/devel/info:/usr/autotool/stable/info:

and you've gone and rebuilt the info index so you can read all your local
info, that's going to un-do it, isn't it?  Should it perhaps say

> for d in /usr/info /usr/share/info ${INFOPATH} do

(modulo perhaps eliminating duplicates)?

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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


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