Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.1i On Fri, Apr 19, 2002 at 11:17:56PM +0200, Benjamin Riefenstahl wrote: >"Harold Hunt" 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