6 # Limit the number of RSS feed entries.
9 rss
="$(curl -s http://sourceforge.net/api/file/index/project-id/202880/mtime/desc/limit/$limit/rss)"
12 file="$(ls -1 mingw-w64-bin_i686-mingw_[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].zip 2>/dev/null)"
15 site
=http
://sourceforge.net
/projects
/mingw-w64
/files
/Toolchains
%20targetting
%20Win64
/Automated
%20Builds
/
17 echo "Could not download mingw-w64-bin_i686-mingw_\$date.zip"
18 echo "If you do not have a direct network connection please go to"
20 echo "download the latest file, place it in $srcdir"
21 echo "and restart this script"
24 file=$
(echo "$file" |
tail -n 1)
28 sed -nr "s/<link>(.+(mingw-w64-bin_i686-mingw_[0-9]+.zip).+)<\/link>/\2\t\1/p" |
30 file=$
(echo "$link" | cut
-f 1)
31 url
=$
(echo "$link" | cut
-f 2)
38 test -f $file || curl
-L $url -o $file ||
exit
42 test -f sysroot
/.root.init.marker
&&
43 test sysroot
/.root.init.marker
-nt $file ||
47 touch .root.init.marker