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/xfree86 setup.exe packages available for comments and testing


On Fri, Apr 19, 2002 at 11:17:56PM +0200, Benjamin Riefenstahl wrote:
>"Harold Hunt" <huntharo@msu.edu> writes:
>> Excellent idea.  Now I just need someone to write that script.
>> Shouldn't be too hard.  Any takers?
>
>How about
>
>  fontdir=/usr/X11R6/lib/X11/fonts
>  wfontdir=`cygpath -w $fontdir`
>  mount -bfs $wfontdir $fontdir 2> /dev/null || mount -bfu $wfontdir $fontdir
>
>IOW, create a system mount in binary mode on the font directory,
>disregarding any existing mount on the same place.  If the user is not
>allowed to create a system mount, create a user mount instead.
>
>This would break when there already is a user mount in text mode.
>That seems pretty unlikely, though.

This looks pretty good to me.

How about something like this, though:

  fontdir=/usr/X11R6/lib/X11/fonts
  wfontdir=`cygpath -w $fontdir`
  umount -u $fontdir 2>/dev/null
  mount -bfs $wfontdir $fontdir 2> /dev/null || mount -bfu $wfontdir $fontdir

Just to ensure that there is no user mount?

Btw, I like the use of the fontdir variable in this context.  It's a
little thing, but...

cgf


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