#!/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 cutdir=3 # Name your download directory mirrordir="_mymirror" wget --mirror --no-host-directories --cut-dirs=$cutdir --passive-ftp -P $mirrordir ${mirror}setup.ini ./clean_setup.pl -Arch -writelist wget --mirror --no-host-directories --cut-dirs=$cutdir --passive-ftp -P $mirrordir -i $filelist -B $mirror ./clean_setup.pl -Setup