Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Ross Smith II" <ross@smithii.com>
To: "Laurynas Biveinis" <laurynas.biveinis@mif.vu.lt>
Cc: <cygwin@cygwin.com>
Subject: RE: Burning cygwin distribution CDs
Date: Fri, 27 Dec 2002 07:53:09 -0800
Message-ID: <NDBBJINIMKJKPGEBBJLKCEKLFGAA.ross@smithii.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <3E0C5309.7090809@mif.vu.lt>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal

> From: Laurynas Biveinis
>
> I want to burn CDs with full cygwin distribution with sources and so on.
> I've downloaded everything from
> ftp://ftp.gwdg.de/pub/linux/sources.redhat/cygwin/release, but it takes
> almost 1 GB. How should I burn it into 2 CDs so that setup.exe still
> works correctly? What directory layout should I use?

Laurynas,

I fit everything I need on 1 CD, by not including the /xfree directory
(370MB), the /release/XFree86 directory (80MB), and not including the [prev]
and [test] packages listed in setup.ini:

#!/usr/bin/perl -w
use strict;
my $dir = shift || '/hdc1/cygwin';
my $file = $dir . '/setup.ini';
open(FH, $file) || die "Can't open $file: $!";
my $prev = 0;
my $line = 0;
while (<FH>) {
      $line++;
      if (/\[prev\]/ || /\[test\]/) {
            $prev++;
            next;
      }
      next unless $prev;
      if (/^\s*$/) {
            $prev = 0;
            next;
      }
      if (/^\w+:\s*(\S+)\s+/) {
            $_ = $1;
            next unless m|/|;
            $file = $dir . '/' . $_;
            if (-e $file) {
                  print "deleting $file\n";
                  unlink($file);
            }
      }
}

Hope that helps,

Ross


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

