annotate etc/check_cygwin_setup.sh @ 2284:17dfe8e3aead

[xemacs-hg @ 2004-09-20 18:11:33 by james] Katsumi's fix to make itimers wake up at the right time.
author james
date Mon, 20 Sep 2004 18:11:33 +0000
parents 98fb34b6fbe9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 #! bash
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 yorn()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 echo -n " [y/n] "
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 read YN junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 if [ "$YN" = "n" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 return -1;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 return 0;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 echo -n "checking for cygwin..."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 if ! uname -v
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 echo "couldn't find uname please add cygwin to your path."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 exit -1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 OSversion="`uname -v | sed 's/^\(.\).*$/\1/'`"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 shell=`type sh | sed 's/sh is //'`
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 distdir=`dirname $shell | sed 's!^//\(.\)/\(.*\)!\1:/\2!'`
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 echo "cygwin installed in $distdir"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 echo "checking paths ..."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 if [ ! -d "/bin" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 echo "You don't have a /bin directory. Would you like to mount cygwin as /bin ?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 mkdir /bin
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 mount -b $distdir /bin
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 fi
503
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
38 #this appears bogus. --ben
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
39 #elif [ "$distdir" != "/bin" ]; then
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
40 # echo "Warning: you have /bin but it's not the cygwin installation."
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 if [ ! -d "/tmp" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 echo -n "You don't have /tmp - create it?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46 mkdir /tmp
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 echo "you have /tmp"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 if [ ! -d "/etc" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 echo -n "You don't have /etc - create it?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55 mkdir /etc
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 echo "you have /etc"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 if [ -d "/etc" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 if [ ! -f "/etc/termcap" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 echo -n "You don't have /etc/termcap - create it?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66 if [ ! -f "$distdir/../etc/termcap" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 distdir=`mount | grep "$distdir" | sed -e "s/ .*$//"`
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69 echo "Retrieving termcap from $distdir/../etc"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 if [ -f "$distdir/../etc/termcap" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 cp "$distdir/../etc/termcap" /etc
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 echo "Error: can't find termcap file"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 echo "you have /etc/termcap"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82 if [ ! -f "/etc/passwd" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 echo -n "You don't have /etc/passwd - create it?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 if [ "$OS" = "Windows_NT" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 echo -n "Running on NT, create domain or local password file [d/l] "
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 read DL junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89 if [ "$DL" = "d" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 mkpasswd -d > /etc/passwd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 mkpasswd -l > /etc/passwd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 echo "Please enter your userid e.g. andyp"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 read userid junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 echo "Please enter your user name e.g. Andy Piper"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 read username junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 echo "Administrator::500:513:::/bin/sh" > /etc/passwd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 echo "$userid::1000:513:$username::/bin/sh" >> /etc/passwd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 echo "you have /etc/passwd"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 userid=`id | sed -e "s/[^(]*(\([^)]*\)).*/\1/"`
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 echo "userid is $userid"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 if [ ! -f "/etc/group" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 echo -n "You don't have /etc/group - create it?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 if [ "$OS" = "Windows_NT" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 echo -n "Running on NT, create domain or local group file [d/l] "
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 read DL junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 if [ "$DL" = "d" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 mkgroup -d > /etc/group
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 mkgroup -l > /etc/group
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 echo "None::513:" > /etc/group
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 echo "Everyone::0:" >> /etc/group
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 echo "you have /etc/group"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132
503
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
133 # this is bogus. i have no hosts file and no problems. --ben
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
134 # if [ ! -f "/etc/hosts" ]; then
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
135 # echo -n "You don't have /etc/hosts - create it?"
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
136 # if yorn; then
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
137 # mname=`uname -n`
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
138 # echo "Machine name is $mname"
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
139 # echo -n "Please enter your ip address "
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
140 # read mipaddr junk
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
141 # echo "$mname $mipaddr" > /etc/hosts
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
142 # echo "localhost 127.0.0.1" >> /etc/hosts
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
143 # fi
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
144 # else
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
145 # echo "you have /etc/hosts"
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
146 # fi
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 echo "Can't create /etc files because /etc does not exist"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 echo "checking environment ..."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 if [ "$HOME" = "" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 echo -n "HOME is not set, rectify?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 if [ "$OS" = "Windows_NT" ]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 echo "please enter your home path [/winnt/profiles/$userid]"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 read HOME junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 if [ "$HOME" = "" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 HOME="/winnt/profiles/$userid"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 echo "please enter your home path [/]"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 read HOME junk
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 if [ "$HOME" = "" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 HOME="/"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 echo "HOME=$HOME; export HOME" >> $HOME/.bashrc
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 echo "HOME is $HOME"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 if [ "$TERM" != "ansi" -a "$TERM" != "linux" ]; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 echo -n "TERM is not set to linux or ansi, rectify?"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 if yorn; then
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 echo "TERM=linux; export TERM" >> $HOME/.bashrc
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183 echo "TERM is $TERM"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185
503
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
186 if echo $CYGWIN | grep -w tty > /dev/null; then
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
187 echo "CYGWIN is $CYGWIN"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
188 else
503
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
189 echo "CYGWIN does not contain \"tty\"; you may experience problems with
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
190 subprocess or terminal handling. To rectify this add CYGWIN=tty to
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
191 your environment. (Note this cannot be done in bash as it needs to be
98fb34b6fbe9 [xemacs-hg @ 2001-05-04 23:31:31 by ben]
ben
parents: 428
diff changeset
192 read when cygwin1.dll initializes.)"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193 fi