This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Detecting text type in a shell script
- From: Robinows at netscape dot net (David Robinow)
- To: nicolas at cs dot virginia dot edu (Nicolas Christin), cygwin at cygwin dot com
- Date: Thu, 06 Feb 2003 11:24:59 -0500
- Subject: RE: Detecting text type in a shell script
Nicolas Christin <nicolas@cs.virginia.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/