This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: /usr/share/* and FHS
- From: "Charles Wilson" <cygwin at cwilson dot fastmail dot fm>
- To: cygwin-apps at cygwin dot com
- Date: Sat, 26 Jul 2003 14:21:54 -0400
- Subject: Re: /usr/share/* and FHS
Christopher Faylor wrote:
>>Does this mean that the _update_info_dir behavior needs to account for
>>both /usr/info and /usr/share/info? Does the base-files package need to
>>adapt so that MANPATH includes both /usr/man and /usr/share/man (ditto
>>INFOPATH)?
>
>
> _update-info-dir uses install-info to create the directory info. I don't
> know if install-info will do the right thing or not.
Well, /etc/postinstall/update-info-dir.sh does this:
cd /usr/info
<do stuff>
It needs to also
cd /usr/share/info
<do stuff>
Perhaps something like this?
#!/bin/sh
for dirn in /usr/info /usr/share/info ; do
cd ${dirn}
for f in *; do
case "$f" in
*\**)
;;
dir|dir.info*)
;;
*-[0123456789]*)
;;
*)
install-info --quiet $f dir ||
install-info --quiet --entry="* $$f ($f): $$f" $$f dir
;;
esac
done
done >/dev/null 2>&1
--
Charles Wilson
cygwin at removespam cwilson dot fastmail dot fm