Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:genpatches-misc commit in: web/
Date: Fri, 30 Mar 2018 11:09:50
Message-Id: 1522408175.a0bd3214fd4266aef2c5aeff465cf5a381b5579e.mpagano@gentoo
1 commit: a0bd3214fd4266aef2c5aeff465cf5a381b5579e
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 30 11:09:35 2018 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 30 11:09:35 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a0bd3214
7
8 htm to html for creation of pages
9
10 web/makesite.pl | 46 +++++++++++++++++++++++-----------------------
11 1 file changed, 23 insertions(+), 23 deletions(-)
12
13 diff --git a/web/makesite.pl b/web/makesite.pl
14 index bc2535d..adcbef2 100755
15 --- a/web/makesite.pl
16 +++ b/web/makesite.pl
17 @@ -34,7 +34,7 @@ process_static_content();
18 sub make_index_page {
19 local *FD;
20 print ">> Making index page\n";
21 - open(FD, '> '.$output_path.'/index.htm');
22 + open(FD, '> '.$output_path.'/index.html');
23 html_header *FD;
24 include_content *FD, 'sitemap';
25 html_footer *FD;
26 @@ -44,7 +44,7 @@ sub make_index_page {
27 sub make_about_page {
28 local *FD;
29 print ">> Making about page\n";
30 - open(FD, '> '.$output_path.'/about.htm');
31 + open(FD, '> '.$output_path.'/about.html');
32 html_header *FD;
33 include_content *FD, 'about';
34 html_footer *FD;
35 @@ -54,7 +54,7 @@ sub make_about_page {
36 sub make_faq_page {
37 local (*FD, *DIR);
38 print ">> Making FAQ page\n";
39 - open(FD, '> '.$output_path.'/faq.htm');
40 + open(FD, '> '.$output_path.'/faq.html');
41 html_header *FD;
42 print FD '<h1>Frequently Asked Questions</h1>';
43 opendir(DIR, 'content/faq');
44 @@ -67,7 +67,7 @@ sub make_faq_page {
45 sub make_bugs_page {
46 local *FD;
47 print ">> Making bugs page\n";
48 - open(FD, '> '.$output_path.'/bugs.htm');
49 + open(FD, '> '.$output_path.'/bugs.html');
50 html_header *FD;
51 include_content *FD, 'bugs';
52 html_footer *FD;
53 @@ -77,7 +77,7 @@ sub make_bugs_page {
54 sub make_issues_page {
55 local *FD;
56 print ">> Making issues page\n";
57 - open(FD, '> '.$output_path.'/issues.htm');
58 + open(FD, '> '.$output_path.'/issues.html');
59 html_header *FD;
60 generate_issues_index(FD);
61 html_footer *FD;
62 @@ -97,7 +97,7 @@ sub generate_issues_index {
63 opendir(DIR, 'content/issues/current');
64 foreach $file (grep { -f "content/issues/current/$_" } sort readdir DIR) {
65 $path = 'content/issues/current/'.$file;
66 - print FD '<li><a href="issues-current.htm#'.$file.'">';
67 + print FD '<li><a href="issues-current.html#'.$file.'">';
68 print FD nl2br html_escape issues_get_questions $path;
69 print FD '</a></li>';
70 }
71 @@ -109,7 +109,7 @@ sub generate_issues_index {
72 opendir(DIR, 'content/issues/resolved');
73 foreach $file (grep { -f "content/issues/resolved/$_" } sort readdir DIR) {
74 $path = 'content/issues/resolved/'.$file;
75 - print FD '<li><a href="issues-resolved.htm#'.$file.'">';
76 + print FD '<li><a href="issues-resolved.html#'.$file.'">';
77 print FD nl2br html_escape issues_get_questions $path;
78 print FD '</a></li>';
79 }
80 @@ -120,7 +120,7 @@ sub generate_issues_index {
81 sub generate_issues_current {
82 local (*DIR, *FD);
83 my $file;
84 - open(FD, '> '.$output_path.'/issues-current.htm');
85 + open(FD, '> '.$output_path.'/issues-current.html');
86 html_header *FD;
87 print FD '<h1>Current Issues and Solutions</h1>';
88
89 @@ -146,7 +146,7 @@ sub generate_issues_current {
90 sub generate_issues_resolved {
91 local (*DIR, *FD);
92 my $file;
93 - open(FD, '> '.$output_path.'/issues-resolved.htm');
94 + open(FD, '> '.$output_path.'/issues-resolved.html');
95 html_header *FD;
96 print FD '<h1>Previous/Resolved Issues and Solutions</h1>';
97
98 @@ -184,7 +184,7 @@ sub make_kernels_page {
99 print ">> Making kernels page\n";
100 my %kernels = _get_genpatches_kernels();
101
102 - open(FD, '> '.$output_path.'/kernels.htm');
103 + open(FD, '> '.$output_path.'/kernels.html');
104 html_header *FD;
105 print FD '<h1>Available Kernels</h1>';
106 print FD '<table id="hor-minimalist-a" class="kernels">';
107 @@ -195,7 +195,7 @@ sub make_kernels_page {
108 print FD '<td>'.$kernel->{'ver'}.'</td>';
109 # need link to be http://git.mpagano.com/?p=linux-patches.git;a=tree;h=9fe89d1c30a6de1bf4996aa8cfaf2a24b77919fe;hb=ae90dea77ef818eb638b8bb086ac8f0b671b28cf
110
111 - print FD '<td><a href="patches-'.$kernel->{'gprev'}.'.htm">'.$kernel->{'gprev'}.'</a> '.$kernel->{'wanted'}.'</td>';
112 + print FD '<td><a href="patches-'.$kernel->{'gprev'}.'.html">'.$kernel->{'gprev'}.'</a> '.$kernel->{'wanted'}.'</td>';
113 print FD '</tr>';
114 }
115
116 @@ -232,11 +232,11 @@ sub make_release_pages {
117
118
119 opendir(DIR, $webscript_path.'/generated');
120 - @patchpages = grep { /-patches\.htm$/ } sort readdir DIR;
121 + @patchpages = grep { /-patches\.html$/ } sort readdir DIR;
122 closedir(DIR);
123
124 foreach $patch (@patchpages) {
125 - $patch =~ m/^(.*)-patches\.htm$/;
126 + $patch =~ m/^(.*)-patches\.html$/;
127 copy($webscript_path.'/generated/'.$patch, $webscript_path.'/output/patches-'.$1.'.htm');
128 }
129
130 @@ -248,9 +248,9 @@ sub mysort {
131
132 sub mysort_old {
133
134 - $a =~ m/^\d\.\d\.(\d+)-(\d+)-info\.htm$/;
135 + $a =~ m/^\d\.\d\.(\d+)-(\d+)-info\.html$/;
136 $mya = $2;
137 - $b =~ m/^\d\.\d\.(\d+)-(\d+)-info\.htm$/;
138 + $b =~ m/^\d\.\d\.(\d+)-(\d+)-info\.html$/;
139 $myb = $2;
140 return $mya - $myb;
141 }
142 @@ -261,10 +261,10 @@ sub make_releases_index {
143 my (%kernels, $info, @infopages, $kernel);
144 local (*DIR, *FILE, *INDEX);
145 opendir(DIR, $webscript_path.'/generated');
146 - @infopages = grep { /-info\.htm$/ } readdir DIR;
147 + @infopages = grep { /-info\.html$/ } readdir DIR;
148 foreach $info (@infopages) {
149 #$info =~ m/^(\d\.\d\.\d+)-\d+-info\.htm$/;
150 - $info =~ m/^(\d\.\d+)-\d+-info\.htm$/;
151 + $info =~ m/^(\d\.\d+)-\d+-info\.html$/;
152 $kernels{$1} = 1;
153 }
154
155 @@ -273,7 +273,7 @@ sub make_releases_index {
156 # $kernels{$1} = 1;
157 # }
158
159 - open(INDEX, '> '.$webscript_path.'/output/releases.htm');
160 + open(INDEX, '> '.$webscript_path.'/output/releases.html');
161 html_header(INDEX, 'genpatches Releases');
162 print INDEX '<h1>genpatches Releases</h1>';
163
164 @@ -282,8 +282,8 @@ sub make_releases_index {
165 if ($kernel == "") {
166 next;
167 }
168 - print INDEX '<p><a href="releases-'.$kernel.'.htm">genpatches releases for Linux '.$kernel.'</a></p>';
169 - open(FILE, '> '.$webscript_path.'/output/releases-'.$kernel.'.htm');
170 + print INDEX '<p><a href="releases-'.$kernel.'.html">genpatches releases for Linux '.$kernel.'</a></p>';
171 + open(FILE, '> '.$webscript_path.'/output/releases-'.$kernel.'.html');
172 html_header(FILE, "$kernel Releases");
173 print FILE '<h1>'.$kernel.' Releases</h1>';
174 foreach (grep { /^$kernel-/ } sort mysort @infopages) {
175 @@ -307,7 +307,7 @@ sub generate_patchlist {
176 local $ext;
177 $ext = get_tarball_ext($tag);
178
179 - open(PATCHLIST, '> '.$webscript_path.'/generated/'.$tag.'-patches.htm');
180 + open(PATCHLIST, '> '.$webscript_path.'/generated/'.$tag.'-patches.html');
181 html_header(PATCHLIST, "$tag Patch List");
182 print PATCHLIST '<h1>'.$tag.' Patch List</h1>';
183 print PATCHLIST '<p>Patches 0000-2999 are available in ';
184 @@ -367,9 +367,9 @@ sub generate_info {
185 print "no revision found for tag: $tag\n";
186 }
187
188 - open (INFO, '> '.$webscript_path.'/generated/'.$tag.'-info.htm');
189 + open (INFO, '> '.$webscript_path.'/generated/'.$tag.'-info.html');
190 print INFO '<h2>Release '.$tag.'</h2>';
191 - print INFO '<p><a href="patches-'.$tag.'.htm">View entire patch list</a><br />';
192 + print INFO '<p><a href="patches-'.$tag.'.html">View entire patch list</a><br />';
193 print INFO 'Split-out patch tarballs: ';
194 print INFO '<a href="tarballs/genpatches-'.$tag.'.base.tar'.$ext.'">base</a>, ';
195 print INFO '<a href="tarballs/genpatches-'.$tag.'.extras.tar'.$ext.'">extras</a></p>';