Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com From: michael-ring AT t-online DOT de (Michael Ring) To: DJ Delorie Cc: cygwin-developers AT sourceware DOT cygnus DOT com Subject: Re: setup: icons, shortcuts, and batch files Date: Tue, 11 Jul 2000 15:16:08 +0200 Message-ID: <6q6mmsof7rf0cr33bed0bsgqejb0ouq7p8@4ax.com> References: <200007110214 DOT WAA16739 AT envy DOT delorie DOT com> In-Reply-To: <200007110214.WAA16739@envy.delorie.com> X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: 320032306730-0001 AT t-dialin DOT net Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id JAA22684 On Mon, 10 Jul 2000 22:14:49 -0400, you wrote: > >I just checked in a patch that teaches setup how to create cygwin.bat >and link to it both in the start menu and on the desktop. These links >also have the new cygwin icon rather than the MS default icon. > >I've also updated the dj-setup.exe file on sourceware, which includes >that plus a fix for a bug Chris found. > >http://sourceware.cygnus.com/cygwin/dj-setup.exe >ftp://sourceware.cygnus.com/pub/cygwin/dj-setup.exe > >I'd like to unleash this on the unsuspecting public ASAP, so please >test this version. Even if you don't need to actually upgrade, please >test-install in a temp directory so I can get some feedback. > >Thanks! >DJ Just tired it, runs wonderfull! I have seen that you decided to start bash with bash --login. That was imho a perfect decision which gives me the chance to contribute some shell code (SMILE). This is an example profile that goes to /etc and helps setting up the user's environment: ------- schnipp PATH=/bin:/usr/bin:$PATH unset DOSDRIVE unset DOSDIR unset TMPDIR unset TMP if [ ! -f /etc/group ]; then echo "Creating /etc/group" mkgroup -l >/etc/group fi USER=`id -un` # Set up USER's home directory if [ -z "$HOME" ]; then HOME=/home/$USER fi if [ -n "$HOMEDRIVE" ]; then mount -b -f ${HOMEDRIVE} $HOME fi if [ ! -d $HOME ]; then mkdir -p $HOME fi MAKE_MODE=unix export MAKE_MODE HOME USER for i in /etc/profile.d/*.sh ; do if [ -x $i ]; then . $i fi done unset i cd / ------ schnapp It is now very easy for packages like x11r6 to expand the path when installed: /etc/profile.d/x11r6.sh: ------ schnipp #!/bin/sh PATH=$PATH:/usr/X11R6/bin DISPLAY=`hostname`:0 export PATH DISPLAY ------ schnapp Of course all this all was not my idea, the concept is shamelessly stolen from redhat-linux. The directory /home should be created in the dj-setup installation. If those files are added to setup (or integrated into a startup-1.0.tar.gz package) then cygwin.bat can be reduced to: @echo off chdir \Cygwin\bin bash --login -i Michael