Subject: Re: ncurses 4.2 and B20.1 install fail (.exe)
From: [email-masked] (Michael Hirmke)
To: [email-masked]
Date: 10 Apr 1999 22:53:00 +0100

Vincent P. LaBella [[email-masked]] wrote:

>Hello,
>	I've been having problems installing ncurses 4.2 with cygwin B20.1
>on NT4.0.

------------------------< snip snip snip >-----------------------------

   - Get some replacement for the original "install" command, so that
     .exe file extensions are handled properly (see attachement 1).
     Note: This is still useful or even necessary for B20 !

------------------------< snip snip snip >-----------------------------

     #! /bin/sh
     
     # file: install
     # author:  earnie                  email: [email-masked]
     #
     # Install Preprocessor for the gnuwin "make install" command.
     #
     # Purpose: 
     #   Automatically add the suffix .exe to filenames that require it
     #
     # To use:
     #   Copy this file earlier in the path than the default install.exe
     #   It is recommended that the original install.exe be renamed 
     #   cyg_install.exe as otherwise some configure programs may fail
     #   to find this install script
     #
     # Note:
     #   No warranty implicit or explicit is given.
     #   You may copy, distribute and use as you see fit.
     #   USE AT YOU OWN RISK.
     #
     # changed: M.Hirmke                email: [email-masked]
     #   changed ginstall to cyg_install, because some packages are looking
     #   for ginstall
     #
     # changed: Dr David Coe            email: [email-masked]
     #   "I seem to remember earnie's script gave trouble (in X11 or lesstif
     #    make install) when both <exec.exe> and <exec> are present
     #    simultaneously). The attached helped."
     #
     # changed: Dr Pierre A. Humblet    email: [email-masked]
     #    Modify logic to work when several files are installed in a directory,
     #    some with the .exe extension and others without.
     #    Issue warning in case of ambiguity
     #    Search for an appropriate install.exe program
     
     tstr=""
     ambiguous=""
     while test $# -gt 1;
     do
       suffix=""
       if test -e "$1.exe";
       then
         if test \( -f "$1" -o -L "$1" \) -a \
                 \( "$(ls -ib "$1").exe" != "$(ls -ib "$1".exe)" \)
         then
           ambiguous="${ambiguous}'$1' '$1.exe' "
         else
           suffix=".exe"
         fi
       fi
       tstr="${tstr}'${1}${suffix}' "
       shift;
     done
     if test -d "$1"
     then
       suffix=""
     fi
     tstr="${tstr}'${1}${suffix}'"
     
     # Issue warning if needed
     if test "$ambiguous"
     then
       echo $0 Warning: ambiguous filenames. Specify '".exe"' if appropriate. 1>&2
       echo $0 "$ambiguous" 1>&2
     fi
     
     # use cyg_install[.exe] if found, otherwise use install.exe
     type cyg_install >/dev/null 2>&1
     if test "$?" = "0"
     then
       eval "cyg_install $tstr"
     else
       eval "install.exe $tstr"
     fi
     exit 

------------------------< snip snip snip >-----------------------------

   *ncurses-4.2*
   -----------

   - what is it?
     - The curses library routines give the user a terminal-inde¡
       pendent method of updating character screens with  reason¡
       able  optimization.  This implementation is ``new curses''
       (ncurses) and is the approved replacement for 4.4BSD clas¡
       sic curses, which has been discontinued.
     - The  ncurses  routines  emulate  the curses(3X) library of
       System V Release 4 UNIX, and the XPG4 curses standard (XSI
       curses)  but the ncurses library is freely redistributable
       in source form.

   - system
     - Windows NT4 German / SP3

   - Cygwin
     - for B20
     - binary mounts only
     - CYGWIN=title strip_title binmode glob tty
   
   - preliminaries
     - get the source packages
       - ncurses-4.2.tar.gz
       somewhere from the net or your favourite Linux distribution

   - configure
     - works without changes
       - example: ./configure --prefix=/usr/local

   - make
     - works without changes

   - make install
     - you have to create one directory first - no idea, why it
       is not created automatically !?!?
       - mkdir -p <prefix>/share/tabset

   - notes
     - none

   - package availability
     - on ftp.franken.de
     - in /pub/win32/develop/gnuwin32/cygwin/porters/Hirmke_Michael/B20
     - as ncurses-4.2-cygwin-b20-bin.tar.gz
     - or ncurses-4.2-cygwin-b20-bin.zip

   - contributed by
     - [email-masked] (Michael Hirmke)

------------------------< snip snip snip >-----------------------------
[...]
>
>Thanks
>
>Vince

Bye.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:[email-masked]
                         | WWW     http://aquarius.franken.de/

--
Want to unsubscribe from this list?
Send a message to [email-masked]