diff options
author | Silvino Silva <silvino@bk.ru> | 2019-03-02 16:06:25 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2019-03-02 16:06:25 +0000 |
commit | e1c4cbc1da6cdfceb1b0046c7f47d345aecd9539 (patch) | |
tree | 55c74b57c0ab3c1b5bca9f5930cfdc33ea2c55fe /core/scripts/portspage.patch | |
parent | 4d95146424bae0ddec124f5dd5d70aa7e97548ee (diff) | |
download | doc-e1c4cbc1da6cdfceb1b0046c7f47d345aecd9539.tar.gz |
core scripts backup revision and added portspage patch
Diffstat (limited to 'core/scripts/portspage.patch')
-rw-r--r-- | core/scripts/portspage.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/scripts/portspage.patch b/core/scripts/portspage.patch new file mode 100644 index 0000000..c94ea4a --- /dev/null +++ b/core/scripts/portspage.patch @@ -0,0 +1,27 @@ +220c220 +< print " <h2>$options{title}</h2>\n"; +--- +> print " <h2><a href=\"https://hive.gnu.systems/wiki/mirror\">Mirror</a> | <a href=\"https://hive.gnu.systems/wiki/crux\">Crux</a> | <a href=\"https://hive.gnu.systems/git/\">Git</a> | <a href=\"https://hive.gnu.systems/mirror/bugs/\">Build errors</a> | <a href=\"https://hive.gnu.systems/mirror/distfiles/\">Distfiles</a> | <a href=\"https://hive.gnu.systems/mirror/releases/archives/$options{title}.tar.gz\">$options{title}.tar.gz</a> | <a href=\"https://hive.gnu.systems/mirror/archive/\">Archive</a></h2>\n"; +233c233,238 +< print " <tr class=\"header\"><td><b>Port</b></td><td><b>Version</b></td><td><b>Description</b></td>"; +--- +> print " <tr class=\"header\"> +> <td><b>Project page</b></td> +> <td><b>Port</b></td> +> <td><b>Package</b></td> +> <td><b>Description</b></td>"; +> +244,248c249,255 +< print " <tr class=\"$odd\"><td>"; +< $db{$port}{URL} ? print "<a href=\"$db{$port}{URL}\">$port</a>" : print "$port"; +< print "</td><td><a href=\"$options{directory}/$port/\">$db{$port}{version}-$db{$port}{release}</a></td><td>"; +< print $db{$port}{Description} if $db{$port}{Description}; +< print "</td>"; +--- +> my $port_collection=`prt-get info $port | grep "Path:" | cut -d ":" -f 2 | xargs basename`; +> print " <tr class=\"$odd\">"; +> $db{$port}{URL} ? print "<td><a href=\"$db{$port}{URL}\">$port</a></td>" : print "<td>$port</td>"; +> #print "</td><td><a href=\"$options{directory}/$port/\">$db{$port}{version}-$db{$port}{release}</a></td><td>"; +> print "<td><a href=\"https://hive.gnu.systems/git/$port_collection.git/tree/refs/heads/master\:/$port\">$db{$port}{version}-$db{$port}{release}</a></td>"; +> print "<td><a href=\"https://hive.gnu.systems/mirror/packages/$port%23$db{$port}{version}-$db{$port}{release}.pkg.tar.gz\">$port#$db{$port}{version}-$db{$port}{release}.pkg.tar.gz</a></td>"; +> print "<td>$db{$port}{Description}</td>" if $db{$port}{Description}; |