Mercurial > hg > xemacs-beta
comparison etc/check_cygwin_setup.sh @ 373:6240c7796c7a r21-2b2
Import from CVS: tag r21-2b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:04:06 +0200 |
parents | cc15677e0335 |
children |
comparison
equal
deleted
inserted
replaced
372:49e1ed2d7ed8 | 373:6240c7796c7a |
---|---|
21 fi | 21 fi |
22 | 22 |
23 OSversion="`uname -v | sed 's/^\(.\).*$/\1/'`" | 23 OSversion="`uname -v | sed 's/^\(.\).*$/\1/'`" |
24 | 24 |
25 shell=`type sh | sed 's/sh is //'` | 25 shell=`type sh | sed 's/sh is //'` |
26 distdir=`dirname $shell` | 26 distdir=`dirname $shell | sed 's!^//\(.\)/\(.*\)!\1:/\2!'` |
27 | 27 |
28 echo "cygwin installed in $distdir" | 28 echo "cygwin installed in $distdir" |
29 | 29 |
30 echo "checking paths ..." | 30 echo "checking paths ..." |
31 | 31 |
32 if [ ! -d "/bin" ]; then | 32 if [ ! -d "/bin" ]; then |
33 echo "You don't have /bin would like to mount cygwin as /bin ?" | 33 echo "You don't have a /bin directory. Would you like to mount cygwin as /bin ?" |
34 if yorn; then | 34 if yorn; then |
35 mkdir /bin | 35 mkdir /bin |
36 mount -b /bin $distdir | 36 mount -b $distdir /bin |
37 fi | 37 fi |
38 elif [ "$distdir" != "/bin" ]; then | 38 elif [ "$distdir" != "/bin" ]; then |
39 echo "Warning: you have /bin but it's not the cygwin installation." | 39 echo "Warning: you have /bin but it's not the cygwin installation." |
40 fi | 40 fi |
41 | 41 |