--- download.bat.orig 2009-02-19 20:00:54.972302400 -0800 +++ download.bat 2009-04-05 12:20:28.953125000 -0700 @@ -340,7 +340,7 @@ :: OUTPUT PACKAGE TABLES TO normal.tmp bin\sed -T -n "//I,/<\/table>/Ip" normal.html > normal.tmp :: OUTPUT PACKAGE INFORMATION TO getgnuwin32.tmp -bin\sed -T -n "//{n;n;n;s/.*/ &/p};/$/Is//\1/p" normal.tmp >getgnuwin32.tmp +bin\sed -T -n "s/.*http:\/\/downloads.sourceforge.net\/gnuwin32\/\(.*-\(bin\|doc\|lib\|dep\)\.zip\).*$/\1/p" normal.tmp >getgnuwin32.tmp del normal.html normal.tmp :: @@ -403,7 +403,7 @@ :: Extract the filelist from temporary file filelist.tmp :: :extract_filelist -bin\sed -T "/^ /d" getgnuwin32.lst >filelist.txt +bin\sort getgnuwin32.lst >filelist.txt :: :: Assume: filelist.txt is already sorted by filenames and fileversion @@ -417,7 +417,7 @@ :: New: getgnuwin32.lst contains also package information. This simplifies :: the process of generating a package list. :: -bin\sed -T -n "/^ /{n;s/\(.*\)-...\.zip/\1/p}" getgnuwin32.lst >packages.txt +bin\sed -T -n "s/^\(.*\)-...\.zip/\1/p" getgnuwin32.lst >packages.txt :: :: Cancel all packages which names are listed within the include.txt and