Detecting text type in a shell script
David Robinow
Robinows@netscape.net
Thu Feb 6 16:25:00 GMT 2003
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/
More information about the Cygwin
mailing list