delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/23/14:35:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <43344AAC.6050806@users.sourceforge.net>
Date: Fri, 23 Sep 2005 13:34:20 -0500
From: "Yaakov S (Cygwin Ports)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: rebase: rebaseall growing pains

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rebaseall is subject to "growing pains".  In addition to the 500-some
packages in the distro, I have my Cygwin Ports repository installed as
well, which makes for a total of almost 1300 binary packages.

When I have to run rebase from the distro, I get the following error:

gzip: Argument list too long

This is because of the command "gzip -d -c /etc/setup/*.lst.gz".
Instead, that part could work like the following:

********************************************************************

This # Set temp file
TmpFile="$TmpDir/rebase.lst"
rm -f $TmpFile

# Create rebase list
for f in /etc/setup/*.lst.gz
do
gzip -d -c $f | grep -E "($Suffixes)\$" | \
    sed -e '/cygwin1.dll$/d' -e 's/^/\//' >>"$TmpFile" ;
done

*********************************************************************

The for,do,done loop isn't limited by argument length, so this works.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDNEqspiWmPGlmQSMRAnd/AJ9Y6QSwHsy92LcgKRK4DlZVEReJrACgy/IV
vo+/9s6Y/Usjv0yl9b05tco=
=ktlH
-----END PGP SIGNATURE-----

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

- Raw text -


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