#12 download.bat cannot create file list (gnuwin32 updated?)

closed-out-of-date
nobody
None
1
2010-05-02
2008-10-22
Anonymous
No

It seems that the gnuwin32 site has updated but the sed magic in download.bat hasn't. At this point download.bat can only download the packages in the file list that ships with getgnuwin32.

Discussion

  • The line that fails is the second one in :create_project_list

    bin\sed -n "/\bid[ \t]*=[ \t]*\(\d034frelease\d034\|\bfrelease\b\)/I,/<\/table>/Ip" normal.html >project.html

    normal.html has what appears to be correct data in it but the new project.html always seems to be an empty file...

     
  • The problem is caused by sourceforge changing all their download links over to javascript links, and also what appears to be some odd regular expressions.

    Here's how to fix this problem (will probably submit a patch soon)

    change the line that looks like this:
    bin\sed -T -n "/<tr\s\+class\s*=\s*\d034package\d034\s*>/{n;n;n;s/.*/ &/p};/<a[ \t]\+.*href[ \t]*=[ \t]*\d034http:\/\/downloads.sourceforge.net\/gnuwin32\/\(.*-\(bin\|doc\|lib\|dep\)\.zip\)?.*\d034>$/Is//\1/p" normal.tmp >getgnuwin32.tmp

    to this:

    bin\sed -T -n "/<tr\s\+class\s*=\s*\d034package\d034\s*>/{n;n;n;s/.*/ &/p};s/<a[ \t]\+.*http:\/\/downloads.sourceforge.net\/gnuwin32\/\(.*-\(bin\|doc\|lib\|dep\)\.zip\).*\d034>$/\1/Ip" normal.tmp > getgnuwin32.tmp

     
  • Jay Satiro
    Jay Satiro
    2010-05-02

    • priority: 5 --> 1
    • status: open --> closed-out-of-date