#!/usr/bin/php [suffix]\n\n"); $baseurl = $argv[1]; if ($argc < 3) $suffix = "-notes.txt"; else $suffix = $argv[2]; echo "Processing SourceForge.net download overview: $baseurl\n"; flush(); $basedata = file_get_contents($baseurl); if ($basedata === false) die("Failed to retrieve data"); $cnt = preg_match_all('/]*>([^<]*) $nextoff) { echo " no release notes, skipping\n"; continue; } } $notedata = file_get_contents($rlsnote[1][0]); if ($notedata === false) { echo " failed to download release notes\n"; continue; } if (preg_match('#Notes:\n(.*)\s+(\s*)?
\s+\s+#s', $notedata, $note)) { $repl = array( '#^ #s', '#