X-Spam-Check-By: sourceware.org
Date: Fri, 13 Jan 2006 02:33:22 -0800
From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
To: Joshua Daniel Franklin <joshuadfranklin@gmail.com>
Cc: cygwin@cygwin.com
Subject: Re: [PATCH] Proposed clarification of the snapshot installation FAQ
Message-ID: <20060113103322.GA1972@efn.org>
References: <dpu1ks$i0a$1@sea.gmane.org> <43C32DA9.2070900@cygwin.com> <dpvba1$i83$1@sea.gmane.org> <43C3F412.1010008@cygwin.com> <dq3d00$4o7$1@sea.gmane.org> <Pine.GSO.4.63.0601111200110.9317@access1.cims.nyu.edu> <dq3h09$k5o$1@sea.gmane.org> <Pine.GSO.4.63.0601112136461.9317@access1.cims.nyu.edu> <cb51e2e0601121957p711594fexdf2a87e4395e3059@mail.gmail.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="k1lZvvs/B4yU6o8G"
Content-Disposition: inline
In-Reply-To: <cb51e2e0601121957p711594fexdf2a87e4395e3059@mail.gmail.com>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Jan 12, 2006 at 07:57:27PM -0800, Joshua Daniel Franklin wrote:
> On 1/11/06, Igor Peshansky wrote:
> > As mentioned in <http://cygwin.com/ml/cygwin/2006-01/msg00537.html>,
> > here's a patch to the FAQ to clarify the section on installing snapshots.
> > I didn't know whether the various *.texinfo files are still used, so I
> > ported the modifications there as well, just in case.
> 
> Applied to faq-setup.xml (the texinfo files are no longer used... I suppose I
> should remove them). It would be nice to have a sample batch file that automated
> the cygwin1.dll replacement, too.

I've prettied up a batch file I use for installing cygwin-inst-*
snapshots, and added stuff to handle spacey pathnames and inetd (which
AIUI isn't always a cygrunsrv service), neither of which I personally
use.

Just drag and drop the tarball onto the batch file, or run with
absolute tarball name as argument via a dos prompt.

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="snapshot.bat.txt"

@echo off
cd c:\cygwin
path bin;%path%
sh -c 'echo Preparing to install "`cygpath -ua %1`";echo'
echo Please shut down all cygwin applications before proceeding
pause
echo Shutting down any cygwin services . . .
net stop inetd >nul 2>nul
sh -c "for serv in `cygrunsrv --list`;do cygrunsrv --stop $serv;done"
echo Installing . . .
move bin\cygwin1.dll
sh -c 'tar xfj "`cygpath -u %1`"'
echo Restarting any cygwin services . . .
net start inetd 2>nul
sh -c "for serv in `cygrunsrv --list`;do net start $serv;done"
bin\echo
cygstart cygwin.bat
bin\echo
echo Verify cygwin.bat and any services correctly start before deleting old dll
pause
del cygwin1.dll


--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--k1lZvvs/B4yU6o8G--
