Mail Archives: cygwin/2005/09/23/14:35:02
-----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 -