delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/06/11:25:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 06 Feb 2003 11:24:59 -0500
From: Robinows AT netscape DOT net (David Robinow)
To: nicolas AT cs DOT virginia DOT edu (Nicolas Christin), cygwin AT cygwin DOT com
Subject: RE: Detecting text type in a shell script
MIME-Version: 1.0
Message-ID: <630773CD.4070596A.00822747@netscape.net>

Nicolas Christin <nicolas AT cs DOT virginia DOT edu> wrote:
>
>I have been looking into the mailing-list archives and the manual but
>could not find any answer to the following problem, which will certainly
>sound trivial. I am release-engineering some software developed under
>Unix. The thing installs just fine under Cygwin when the "UNIX file"
>text type has been selected at installation type but breaks if the "DOS
>file" text type has been selected. So, what I would want to have in the
>./install of the package I am release-enginering is something of the
>form:
>
>#!/bin/sh
>
>if [ ${cygwin-unix-type} eq "true" ]; then
>        proceed();
>else
>        bail();
>fi;
>
>How can I detect what text type was chosen at install time? (So that I
>can appropriately set/unset my cygwin-unix-type variable.)

   Has it occurred to you that a better solution might be to fix your software so that it works properly with text mounts?


__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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