This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Using a real mirroring tool...
Hi!
> Charles Wilson wrote:
>
>> A few notes:
>> ...
>> rsync can't merge.
>
> Yes, but Michael A. Chases clean_setup.pl can! I allowed myself to add a
> new option to clean_setup.pl, it exports the list of missing files to a
> file. Then you can use wget to get all the missing files.
>
> I attached the modified clean_setup.pl plus a shell scrip to get the
> missing files from a mirror. You have to modify the getmissing.sh to
> choose your mirror and your target download directory. The directory and
> both files must exist the same directory as your setup.exe. Just a quick
> hack, I guarantee nothing!
Use the attached getmissing.sh instead, some options for wget were not
correct, they left directory listing files.
Bye
Volker
#!/bin/bash
# Mirror script for cygwin
# Uses Michael A. Chase "cleanup_setup.pl"
# in a modified version (V1.0303)
# and wget
# getmissing.sh and cleanup_setup.pl must reside in the same directory
# as setup.exe
# Files to download
filelist="missing.lst"
# Choose your mirror with directory of setup.ini
#mirror="ftp://ftp.inf.tu-dresden.de/software/windows/cygwin32/"
# Cut directories 1 2 3
mirror="ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/"
# Cut directories 1 2 3
cutdir=3
# Name your download directory
mirrordir="_mymirror"
wget -r -N --no-host-directories --cut-dirs=$cutdir --passive-ftp -P $mirrordir ${mirror}setup.ini
./clean_setup.pl -writelist
wget -r -N --no-host-directories --cut-dirs=$cutdir --passive-ftp -P $mirrordir -i $filelist -B $mirror
./clean_setup.pl -Arch -Setup
--
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/