Mercurial > hg > xemacs-beta
view etc/check_cygwin_setup.sh @ 558:ed498ef2108b
[xemacs-hg @ 2001-05-23 09:59:33 by ben]
xemacs.mak: call `ver' to get the exact os version and put it in the
installation; suggestion from adrian.
behavior-defs.el: Add scroll-in-place, jka-compr, efs, fix up some things.
pop.c: Remove BROKEN_CYGWIN.
etc\sample.init.el: Rewrite to be much more careful about loading features --
now it decays gracefully even in the complete absence of packages.
Also avoid doing obnoxious things when loading efs.
configure.in: add some support for eventually turning on file coding by
default. Fix numerous places where AC_MSG_WARN had quotes
around its arg, which is bad. Replace with []. Same for
AC_MSG_ERROR.
s\cygwin32.h, s\mingw32.h: remove support for way old beta versions of cygwin.
don't put -Wno-sign-compare in the system switches; this
isn't a system issue. define BROKEN_SIGIO for cygwin to
get C-g support.
device-msw.c: signal an error rather than crash with an unavailable network
printer (from Mike Alexander).
event-msw.c: cleanup headers. fix (hopefully) an error with data corruption
when sending to a network connection.
fileio.c: Fix evil code that attempts
to handle the ~user prefix by (a) always assuming we're referencing
ourselves and not even verifying the user -- hence any file with
a tilde as its first char is invalid! (b) if there wasn't a slash
following the filename, the pointer was set *past* the end of
file and we started reading from uninitialized memory. Now we
simply treat these as files, always.
optionally for 21.4 (doc fix):
lread.c: cambia de pas_de_lache_ici -- al minimo usa la palabra certa.
frame.c: fix warnings.
emacs.c, nt.c, ntproc.c, process-nt.c, realpath.c, unexnt.c: rename MAX_PATH
to standard PATH_MAX.
process-nt.c, realpath.c: cleanup headers.
process-unix.c, sysdep.c, systime.h, syswindows.h: kill BROKEN_CYGWIN and
support for way old beta versions of cygwin.
sysfile.h: use _MAX_PATH (Windows) preferentially for PATH_MAX if defined.
include io.h on Cygwin (we need get_osfhandle()). include
sys/fcntl.h always, since we were including it in various
header files anyway.
unexcw.c: fix up style to conform to standard. remove duplicate definition
of PERROR.
buffer.c: comment change.
database.c, debug.h, device-tty.c, dired-msw.c, glyphs-msw.c: header
cleanups (remove places that directly include a system
header file, because we have our own layer to do this more cleanly
and portably); indentation fixes.
author | ben |
---|---|
date | Wed, 23 May 2001 09:59:48 +0000 |
parents | 98fb34b6fbe9 |
children |
line wrap: on
line source
#! bash yorn() { echo -n " [y/n] " read YN junk if [ "$YN" = "n" ] then return -1; else return 0; fi } echo -n "checking for cygwin..." if ! uname -v then echo "couldn't find uname please add cygwin to your path." exit -1 fi OSversion="`uname -v | sed 's/^\(.\).*$/\1/'`" shell=`type sh | sed 's/sh is //'` distdir=`dirname $shell | sed 's!^//\(.\)/\(.*\)!\1:/\2!'` echo "cygwin installed in $distdir" echo "checking paths ..." if [ ! -d "/bin" ]; then echo "You don't have a /bin directory. Would you like to mount cygwin as /bin ?" if yorn; then mkdir /bin mount -b $distdir /bin fi #this appears bogus. --ben #elif [ "$distdir" != "/bin" ]; then # echo "Warning: you have /bin but it's not the cygwin installation." fi if [ ! -d "/tmp" ]; then echo -n "You don't have /tmp - create it?" if yorn; then mkdir /tmp fi else echo "you have /tmp" fi if [ ! -d "/etc" ]; then echo -n "You don't have /etc - create it?" if yorn; then mkdir /etc fi else echo "you have /etc" fi if [ -d "/etc" ] then if [ ! -f "/etc/termcap" ]; then echo -n "You don't have /etc/termcap - create it?" if yorn; then if [ ! -f "$distdir/../etc/termcap" ] then distdir=`mount | grep "$distdir" | sed -e "s/ .*$//"` echo "Retrieving termcap from $distdir/../etc" fi if [ -f "$distdir/../etc/termcap" ] then cp "$distdir/../etc/termcap" /etc else echo "Error: can't find termcap file" fi fi else echo "you have /etc/termcap" fi if [ ! -f "/etc/passwd" ]; then echo -n "You don't have /etc/passwd - create it?" if yorn; then if [ "$OS" = "Windows_NT" ] then echo -n "Running on NT, create domain or local password file [d/l] " read DL junk if [ "$DL" = "d" ] then mkpasswd -d > /etc/passwd else mkpasswd -l > /etc/passwd fi else echo "Please enter your userid e.g. andyp" read userid junk echo "Please enter your user name e.g. Andy Piper" read username junk echo "Administrator::500:513:::/bin/sh" > /etc/passwd echo "$userid::1000:513:$username::/bin/sh" >> /etc/passwd fi fi else echo "you have /etc/passwd" userid=`id | sed -e "s/[^(]*(\([^)]*\)).*/\1/"` fi echo "userid is $userid" if [ ! -f "/etc/group" ]; then echo -n "You don't have /etc/group - create it?" if yorn; then if [ "$OS" = "Windows_NT" ] then echo -n "Running on NT, create domain or local group file [d/l] " read DL junk if [ "$DL" = "d" ] then mkgroup -d > /etc/group else mkgroup -l > /etc/group fi else echo "None::513:" > /etc/group echo "Everyone::0:" >> /etc/group fi fi else echo "you have /etc/group" fi # this is bogus. i have no hosts file and no problems. --ben # if [ ! -f "/etc/hosts" ]; then # echo -n "You don't have /etc/hosts - create it?" # if yorn; then # mname=`uname -n` # echo "Machine name is $mname" # echo -n "Please enter your ip address " # read mipaddr junk # echo "$mname $mipaddr" > /etc/hosts # echo "localhost 127.0.0.1" >> /etc/hosts # fi # else # echo "you have /etc/hosts" # fi else echo "Can't create /etc files because /etc does not exist" fi echo "checking environment ..." if [ "$HOME" = "" ]; then echo -n "HOME is not set, rectify?" if yorn; then if [ "$OS" = "Windows_NT" ] then echo "please enter your home path [/winnt/profiles/$userid]" read HOME junk if [ "$HOME" = "" ]; then HOME="/winnt/profiles/$userid" fi else echo "please enter your home path [/]" read HOME junk if [ "$HOME" = "" ]; then HOME="/" fi fi echo "HOME=$HOME; export HOME" >> $HOME/.bashrc fi else echo "HOME is $HOME" fi if [ "$TERM" != "ansi" -a "$TERM" != "linux" ]; then echo -n "TERM is not set to linux or ansi, rectify?" if yorn; then echo "TERM=linux; export TERM" >> $HOME/.bashrc fi else echo "TERM is $TERM" fi if echo $CYGWIN | grep -w tty > /dev/null; then echo "CYGWIN is $CYGWIN" else echo "CYGWIN does not contain \"tty\"; you may experience problems with subprocess or terminal handling. To rectify this add CYGWIN=tty to your environment. (Note this cannot be done in bash as it needs to be read when cygwin1.dll initializes.)" fi