delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/16/22:57:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
Date: Fri, 16 Apr 2010 20:56:45 -0600
From: Tom Hall <tlhall AT keepandbeararms DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Installing a "copy" of an installation on a new computer
Message-ID: <20100417025622.GA6092@LL3213>
Reply-To: tlhall AT keepandbeararms DOT com
References: <c5341f401003080045n2fbf9f68g288693774337d553 AT mail DOT gmail DOT com> <c5341f401003092338s721e798blb774b3c9a8c70de8 AT mail DOT gmail DOT com>
Mime-Version: 1.0
In-Reply-To: <c5341f401003092338s721e798blb774b3c9a8c70de8@mail.gmail.com>
User-Agent: Mutt/1.4.2.2i
Operating-System: CYGWIN_NT-5.1 LL3213 1.7.1(0.218/5/3)
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

--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

On Wed, Mar 10, 2010 at 08:38:56AM +0100, Olle Olsson wrote:
> Hi,
> 
> I found the following
>   http://www.cygwin.com/ml/cygwin/2006-05/msg00753.html
> which might provide one practical solution. Will try this.
> /olle

I was having trouble coming up with a sed command to convert all the version
numbers to 0.0-0, so instead, I 'cut' all the package names from
/etc/setup/installed.db and built a batch file to call setup.exe with the -P
switch.


--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=portcyg

#!/usr/bin/sh
echo -n setup.exe -P $(
    for p in $(cut -d \  -f 1 /etc/setup/installed.db)
    do
        if [ "$p" == "INSTALLED.DB" ] 
        then
            continue
        elif [ "$p" == "_update-info-dir" ] 
        then
            continue
        else
            echo -n $p,
            fi
        done) > portcyg.bat


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

--
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
--PNTmBPCT7hxwcZjr--

- Raw text -


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