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 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: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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--