From: "Mike Pagano" <mpagano@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/linux-patches:genpatches-misc commit in: web/
Date: Fri, 30 Mar 2018 11:09:45 +0000 (UTC) [thread overview]
Message-ID: <1522408175.a0bd3214fd4266aef2c5aeff465cf5a381b5579e.mpagano@gentoo> (raw)
commit: a0bd3214fd4266aef2c5aeff465cf5a381b5579e
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 30 11:09:35 2018 +0000
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Fri Mar 30 11:09:35 2018 +0000
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a0bd3214
htm to html for creation of pages
web/makesite.pl | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/web/makesite.pl b/web/makesite.pl
index bc2535d..adcbef2 100755
--- a/web/makesite.pl
+++ b/web/makesite.pl
@@ -34,7 +34,7 @@ process_static_content();
sub make_index_page {
local *FD;
print ">> Making index page\n";
- open(FD, '> '.$output_path.'/index.htm');
+ open(FD, '> '.$output_path.'/index.html');
html_header *FD;
include_content *FD, 'sitemap';
html_footer *FD;
@@ -44,7 +44,7 @@ sub make_index_page {
sub make_about_page {
local *FD;
print ">> Making about page\n";
- open(FD, '> '.$output_path.'/about.htm');
+ open(FD, '> '.$output_path.'/about.html');
html_header *FD;
include_content *FD, 'about';
html_footer *FD;
@@ -54,7 +54,7 @@ sub make_about_page {
sub make_faq_page {
local (*FD, *DIR);
print ">> Making FAQ page\n";
- open(FD, '> '.$output_path.'/faq.htm');
+ open(FD, '> '.$output_path.'/faq.html');
html_header *FD;
print FD '<h1>Frequently Asked Questions</h1>';
opendir(DIR, 'content/faq');
@@ -67,7 +67,7 @@ sub make_faq_page {
sub make_bugs_page {
local *FD;
print ">> Making bugs page\n";
- open(FD, '> '.$output_path.'/bugs.htm');
+ open(FD, '> '.$output_path.'/bugs.html');
html_header *FD;
include_content *FD, 'bugs';
html_footer *FD;
@@ -77,7 +77,7 @@ sub make_bugs_page {
sub make_issues_page {
local *FD;
print ">> Making issues page\n";
- open(FD, '> '.$output_path.'/issues.htm');
+ open(FD, '> '.$output_path.'/issues.html');
html_header *FD;
generate_issues_index(FD);
html_footer *FD;
@@ -97,7 +97,7 @@ sub generate_issues_index {
opendir(DIR, 'content/issues/current');
foreach $file (grep { -f "content/issues/current/$_" } sort readdir DIR) {
$path = 'content/issues/current/'.$file;
- print FD '<li><a href="issues-current.htm#'.$file.'">';
+ print FD '<li><a href="issues-current.html#'.$file.'">';
print FD nl2br html_escape issues_get_questions $path;
print FD '</a></li>';
}
@@ -109,7 +109,7 @@ sub generate_issues_index {
opendir(DIR, 'content/issues/resolved');
foreach $file (grep { -f "content/issues/resolved/$_" } sort readdir DIR) {
$path = 'content/issues/resolved/'.$file;
- print FD '<li><a href="issues-resolved.htm#'.$file.'">';
+ print FD '<li><a href="issues-resolved.html#'.$file.'">';
print FD nl2br html_escape issues_get_questions $path;
print FD '</a></li>';
}
@@ -120,7 +120,7 @@ sub generate_issues_index {
sub generate_issues_current {
local (*DIR, *FD);
my $file;
- open(FD, '> '.$output_path.'/issues-current.htm');
+ open(FD, '> '.$output_path.'/issues-current.html');
html_header *FD;
print FD '<h1>Current Issues and Solutions</h1>';
@@ -146,7 +146,7 @@ sub generate_issues_current {
sub generate_issues_resolved {
local (*DIR, *FD);
my $file;
- open(FD, '> '.$output_path.'/issues-resolved.htm');
+ open(FD, '> '.$output_path.'/issues-resolved.html');
html_header *FD;
print FD '<h1>Previous/Resolved Issues and Solutions</h1>';
@@ -184,7 +184,7 @@ sub make_kernels_page {
print ">> Making kernels page\n";
my %kernels = _get_genpatches_kernels();
- open(FD, '> '.$output_path.'/kernels.htm');
+ open(FD, '> '.$output_path.'/kernels.html');
html_header *FD;
print FD '<h1>Available Kernels</h1>';
print FD '<table id="hor-minimalist-a" class="kernels">';
@@ -195,7 +195,7 @@ sub make_kernels_page {
print FD '<td>'.$kernel->{'ver'}.'</td>';
# need link to be http://git.mpagano.com/?p=linux-patches.git;a=tree;h=9fe89d1c30a6de1bf4996aa8cfaf2a24b77919fe;hb=ae90dea77ef818eb638b8bb086ac8f0b671b28cf
- print FD '<td><a href="patches-'.$kernel->{'gprev'}.'.htm">'.$kernel->{'gprev'}.'</a> '.$kernel->{'wanted'}.'</td>';
+ print FD '<td><a href="patches-'.$kernel->{'gprev'}.'.html">'.$kernel->{'gprev'}.'</a> '.$kernel->{'wanted'}.'</td>';
print FD '</tr>';
}
@@ -232,11 +232,11 @@ sub make_release_pages {
opendir(DIR, $webscript_path.'/generated');
- @patchpages = grep { /-patches\.htm$/ } sort readdir DIR;
+ @patchpages = grep { /-patches\.html$/ } sort readdir DIR;
closedir(DIR);
foreach $patch (@patchpages) {
- $patch =~ m/^(.*)-patches\.htm$/;
+ $patch =~ m/^(.*)-patches\.html$/;
copy($webscript_path.'/generated/'.$patch, $webscript_path.'/output/patches-'.$1.'.htm');
}
@@ -248,9 +248,9 @@ sub mysort {
sub mysort_old {
- $a =~ m/^\d\.\d\.(\d+)-(\d+)-info\.htm$/;
+ $a =~ m/^\d\.\d\.(\d+)-(\d+)-info\.html$/;
$mya = $2;
- $b =~ m/^\d\.\d\.(\d+)-(\d+)-info\.htm$/;
+ $b =~ m/^\d\.\d\.(\d+)-(\d+)-info\.html$/;
$myb = $2;
return $mya - $myb;
}
@@ -261,10 +261,10 @@ sub make_releases_index {
my (%kernels, $info, @infopages, $kernel);
local (*DIR, *FILE, *INDEX);
opendir(DIR, $webscript_path.'/generated');
- @infopages = grep { /-info\.htm$/ } readdir DIR;
+ @infopages = grep { /-info\.html$/ } readdir DIR;
foreach $info (@infopages) {
#$info =~ m/^(\d\.\d\.\d+)-\d+-info\.htm$/;
- $info =~ m/^(\d\.\d+)-\d+-info\.htm$/;
+ $info =~ m/^(\d\.\d+)-\d+-info\.html$/;
$kernels{$1} = 1;
}
@@ -273,7 +273,7 @@ sub make_releases_index {
# $kernels{$1} = 1;
# }
- open(INDEX, '> '.$webscript_path.'/output/releases.htm');
+ open(INDEX, '> '.$webscript_path.'/output/releases.html');
html_header(INDEX, 'genpatches Releases');
print INDEX '<h1>genpatches Releases</h1>';
@@ -282,8 +282,8 @@ sub make_releases_index {
if ($kernel == "") {
next;
}
- print INDEX '<p><a href="releases-'.$kernel.'.htm">genpatches releases for Linux '.$kernel.'</a></p>';
- open(FILE, '> '.$webscript_path.'/output/releases-'.$kernel.'.htm');
+ print INDEX '<p><a href="releases-'.$kernel.'.html">genpatches releases for Linux '.$kernel.'</a></p>';
+ open(FILE, '> '.$webscript_path.'/output/releases-'.$kernel.'.html');
html_header(FILE, "$kernel Releases");
print FILE '<h1>'.$kernel.' Releases</h1>';
foreach (grep { /^$kernel-/ } sort mysort @infopages) {
@@ -307,7 +307,7 @@ sub generate_patchlist {
local $ext;
$ext = get_tarball_ext($tag);
- open(PATCHLIST, '> '.$webscript_path.'/generated/'.$tag.'-patches.htm');
+ open(PATCHLIST, '> '.$webscript_path.'/generated/'.$tag.'-patches.html');
html_header(PATCHLIST, "$tag Patch List");
print PATCHLIST '<h1>'.$tag.' Patch List</h1>';
print PATCHLIST '<p>Patches 0000-2999 are available in ';
@@ -367,9 +367,9 @@ sub generate_info {
print "no revision found for tag: $tag\n";
}
- open (INFO, '> '.$webscript_path.'/generated/'.$tag.'-info.htm');
+ open (INFO, '> '.$webscript_path.'/generated/'.$tag.'-info.html');
print INFO '<h2>Release '.$tag.'</h2>';
- print INFO '<p><a href="patches-'.$tag.'.htm">View entire patch list</a><br />';
+ print INFO '<p><a href="patches-'.$tag.'.html">View entire patch list</a><br />';
print INFO 'Split-out patch tarballs: ';
print INFO '<a href="tarballs/genpatches-'.$tag.'.base.tar'.$ext.'">base</a>, ';
print INFO '<a href="tarballs/genpatches-'.$tag.'.extras.tar'.$ext.'">extras</a></p>';
next reply other threads:[~2018-03-30 11:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 11:09 Mike Pagano [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-10 10:26 [gentoo-commits] proj/linux-patches:genpatches-misc commit in: web/ Arisu Tachibana
2022-07-24 17:16 Mike Pagano
2022-07-24 17:14 Mike Pagano
2021-07-13 13:26 Mike Pagano
2020-12-29 19:17 Mike Pagano
2019-07-09 12:11 Mike Pagano
2019-07-08 20:47 Mike Pagano
2019-02-07 0:21 Mike Pagano
2019-01-12 18:46 Mike Pagano
2018-08-10 13:00 Mike Pagano
2018-08-04 13:27 Mike Pagano
2018-07-25 11:41 Mike Pagano
2018-07-24 16:43 Mike Pagano
2018-06-12 23:02 Mike Pagano
2017-02-21 0:32 Mike Pagano
2015-06-23 12:07 Mike Pagano
2014-12-23 17:58 Mike Pagano
2014-07-01 22:54 Mike Pagano
2014-06-25 23:55 Mike Pagano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1522408175.a0bd3214fd4266aef2c5aeff465cf5a381b5579e.mpagano@gentoo \
--to=mpagano@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox