delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/25/09:27:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <168453.89730.qm@web25508.mail.ukl.yahoo.com>
Date: Thu, 25 Mar 2010 14:26:40 +0000 (GMT)
From: Marco Atzeri <marco_atzeri AT yahoo DOT it>
Subject: Re: changing setup executable
To: Rance Hall <ranceh AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <845c0f81003250703x3d1cf923u7db8fd83eafd707e@mail.gmail.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--- Gio 25/3/10, Rance Hall  ha scritto:

> Marco Atzeri=20
> wrote:
>=20
> <snip>
>=20
> > Hi Rance,
> > Setup is a program and as such has its own fixed bugs
> and
> > feature improvements that require updated release.
> >
> > See here from the source the Changelog
> >
> > http://sources.redhat.com/cgi-bin/cvsweb.cgi/setup/ChangeLog?rev=3D2.69=
3&content-type=3Dtext/x-cvsweb-markup&cvsroot=3Dcygwin-apps
> >
> >
> > Regards
> > Marco
> >
>=20
> Thanks to both Marco and Dave for the link.
>=20
> I thought I had an idea for a script that would autoupdate
> cygwin on a
> weekly basis that can be used for network deployment etc.
>=20
> The two basic things I was having trouble wrapping my head
> around are
> checking setup to see if you need a new one and is this
> worth it.
> Maybe the easiest thing to do would be calculate a checksum
> from setup
> and check the web to see if it matches.
>=20
> then the next item is to check the packages list from
> cygwin somehow
> and then check the web to see if an update needs to be
> applied.
>=20
> I'm thinking the best place to run this script is from
> within cygwin
> itself.=A0 windows scripting has precious few options
> that help me do
> any real work.=A0 then the challenge would be to somehow
> trigger the
> setup run in windows after cygwin exits.

make a simple windows bat file and run it from cmd.exe

example.bat
------------------------
cd c:\cygwin\bin
bash -l -e "your_bash_script"
cd c:\your_setup_dir\cygwin
setup "all your options"
--------------------------

in this way setup will run after bash completes=20
the script.
And you can also shutdown the cygwin services
adding at the end of the bash script something like

-----------------------------
for k in `cygrunsrv -L`
  do
      cygrunsrv -E $k
  done
-----------------------------

>=20
> I'm sure that this has been done before, but I'm doing this
> as an
> intellectual learning exercise too so I didn't mention the
> script when
> asking the question.
>=20
> Rance
>=20

Regards
Marco


=20=20=20=20=20


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019