File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 33# TODO MULTIPLE ORIGINS
44
55# Crude but works ↓
6- my $ url = ‘ https://www.gaisler.com/index.php/downloads/ grlib’ ;
6+ my $ url = ‘ https://www.gaisler.com/grlib-ip-library ’ ;
77my $ page = run (: out, <curl -- >, $ url ). out. slurp ;
8- my $ line = $ page . lines . grep (/「<a href = "/products/grlib/grlib-gpl」/).head;
98
10- my ($tar-link, $changelog-link) = ($line ~~ m:g/‘href=" ’(<- [ " ] >+ )‘"’ /)»[0 ]». Str ;
9+ $ page . match : /(‘https: // download. gaisler. com/ products/ GRLIB/ bin/ grlib-gpl-’ .+? ‘ .tar.gz’ )/ ;
10+ my $ tar-link = ~ $0 ;
11+ my $ changelog-link = ‘ http://download.gaisler.com/products/GRLIB/doc/Changelog.txt’ ;
1112
12- run <curl --remote-name -- >, ‘ https://www.gaisler.com ’ ~ $ changelog-link , : cwd(‘ files’ );
13- run <curl --remote-name -- >, ‘ https://www.gaisler.com ’ ~ $ tar-link , : cwd(‘ snapshots’ );
13+ run <curl --remote-name -- >, $ changelog-link , : cwd(‘ files’ );
14+ run <curl --remote-name -- >, $ tar-link , : cwd(‘ snapshots’ );
1415
1516my @ snapshots = dir ‘ snapshots’ ;
1617@ snapshots .= map : { die unless / ‘ -b’ (\d+ )‘ .tar.gz’ $ / ; + $0 => $ _ };
You can’t perform that action at this time.
0 commit comments