delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/04/19/20:46:00

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Fri, 19 Apr 2002 20:44:48 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-apps AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
Subject: Re: cygwin/xfree86 setup.exe packages available for comments and testing
Message-ID: <20020420004448.GD28399@redhat.com>
Reply-To: cygwin-apps AT cygwin DOT com
Mail-Followup-To: cygwin-apps AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
References: <NHEELHJHHFKPMAEAFMFCCEANCNAA DOT huntharo AT msu DOT edu> <m34ri7e6bf DOT fsf AT benny-ppc DOT crocodial DOT de>
Mime-Version: 1.0
In-Reply-To: <m34ri7e6bf.fsf@benny-ppc.crocodial.de>
User-Agent: Mutt/1.3.23.1i

On Fri, Apr 19, 2002 at 11:17:56PM +0200, Benjamin Riefenstahl wrote:
>"Harold Hunt" <huntharo AT msu DOT 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

- Raw text -


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