index : checker | |
Archlinux32 consistency checker | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2024-09-14 15:09:51 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2024-09-14 15:09:51 +0200 |
commit | b10e18c0939d693bc833425110e615d6bba7908a (patch) | |
tree | fc6a594f3c807905ca1e7e1167d3e070f0044bc7 /templates | |
parent | e9a7c61175caf1e7fca688fe69443b509335a2af (diff) |
-rw-r--r-- | templates/stdlib.m4 | 208 | ||||
-rw-r--r-- | templates/summary.m4 | 30 | ||||
-rw-r--r-- | templates/table.m4 | 658 |
diff --git a/templates/stdlib.m4 b/templates/stdlib.m4 new file mode 100644 index 0000000..b320774 --- /dev/null +++ b/templates/stdlib.m4 @@ -0,0 +1,208 @@ +m4_divert(-1) + +m4_define(`_Copyleft', +`Copyright (C) 1997 Bob Hepple + +This program is free software; you can redistribute it +and/or modify it under the terms of the GNU General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be +useful, but WITHOUT ANY WARRANTY; without even the implied +warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. See the GNU General Public License for more +details. + +You should have received a copy of the GNU General Public +License along with this program; if not, write to the Free +Software Foundation, Inc., 675 Mass Ave, Cambridge, MA +02139, USA.') + +m4_changecom(`[[[[') + +m4_dnl define(`_LOCAL',1) + +m4_ifdef(`_LOCAL', + `m4_define(`_HOMEPAGE',`//127.0.0.1/~bhepple')', + `m4_define(`_HOMEPAGE',`//www.bit.net.au/~bhepple')') + +m4_ifdef(`_LOCAL', + `m4_define(`_SECONDPAGE',`//127.0.0.1/~bhepple')', + `m4_define(`_SECONDPAGE',`//www.bit.net.au/~bhepple')') + +m4_define(`_EMAIL_ADDRESS',bhepple@bit.net.au) + +m4_define(`_MAILTO',<A HREF="mailto:$1">$2</A>) + +m4_define(`_EMAILME',_MAILTO(_EMAIL_ADDRESS,$1)) + +m4_define(`_CODEQUOTE',<BLOCKQUOTE><PRE><CODE>$1</CODE></PRE></BLOCKQUOTE>) + +m4_dnl Logical markup: + +m4_define(`_EM',<EM>$1</EM>) +m4_define(`_STRONG',<STRONG>$1</STRONG>) +m4_define(`_CITE',<CITE>$1</CITE>) +m4_define(`_PRE',<BLOCKQUOTE><PRE>$1</PRE></BLOCKQUOTE>) +m4_define(`_CODE',<CODE>$1</CODE>) + +m4_dnl Physical markup: + +m4_define(`_BOLD',<B>$1</B>) +m4_define(`_ITALICS',<I>$1</I>) +m4_define(`_STRIKE',<S>$1</S>) +m4_define(`_SUBSCRIPT',<SUB>$1</SUB>) +m4_define(`_SUPERSCRIPT',<SUP>$1</SUP>) +m4_define(`_COURIER',<TT>$1</TT>) +m4_define(`_UNDERLINE',<U>$1</U>) +m4_define(`_SMALL',<SMALL>$1</SMALL>) +m4_define(`_BIG',<BIG>$1</BIG>) + +m4_define(`_CENTER',<CENTER>$1</CENTER>) + +m4_define(`_LIMAGE', <IMG SRC="$1" ALT="[$1]" WIDTH=$2 HEIGHT=$3>) + +m4_define(`_RIMAGE', <IMG SRC="$1" ALT="[$1]" WIDTH=$2 HEIGHT=$3 ALIGN="right">) + +m4_define(`_IMAGE', <P><CENTER><IMG SRC="$1" ALT="[$1]" WIDTH=$2 HEIGHT=$3></CENTER><P>) + +m4_define(`_IMAGE2',<P><CENTER> +<IMG SRC="$1" ALT="[$1]" ALIGN=TOP WIDTH=$2 HEIGHT=$3> +<IMG SRC="$4" ALT="[$4]" ALIGN=TOP WIDTH=$5 HEIGHT=$6> +</CENTER><P>) + +m4_define(`_FTP',<A HREF="http:$1">$2</A>) + +m4_define(`_HEAD1', <H2>$1</H2>) + +m4_define(`_HEAD2', <H3>$1</H3>) + +m4_define(`_LINK', <a href="$1">$2</a>) + +m4_define(`_SELFLINK', _LINK($1,$1)) + +m4_define(`_LOCALLINK',<A HREF="#$1">$2</A>) + +m4_define(`_LABEL',<A NAME="$1"><H2>$1</H2></A>) + +m4_define(`_LINK_TO_LABEL', _LOCALLINK($1,$1)) + +m4_define(`_PLUG', + _LINK(http://www.ssc.com/linux/, + _IMAGE(_HOMEPAGE/powered.gif,196,49))<BR> +`If you are wondering, Linux is a free, non-commercial +operating system for computers. It happens to be a hobby of +mine and might well interest other hackers. Click on the logo +to learn more...') + +m4_define(`_HEADER', +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> +<HEAD> + <TITLE>$1</TITLE> + <META NAME="Author" CONTENT="Bob Hepple"> +</HEAD> +<BODY BGCOLOR="#FFFFFE" BACKGROUND="http:_HOMEPAGE/bg.gif" $2> +<CENTER><A NAME="Contents"><H1>$1</H1></A></CENTER><HR>) + +m4_define(_COUNTER,) + +m4_dnl define(`_COUNTER',<img SRC="/cgi-bin/Count.cgi?dd=T|ft=6|frgb=648bd8|md=5|pad=Y|df=bhepple$1.dat" align=absmiddle> $2) + +m4_define(`_CREDITS',`For corrections/additions/suggestions for this page, please send email to: _EMAILME(Bob Hepple) <P> Copyright `©' 1997 Bob Hepple. All rights reserved.') + +m4_dnl ---------------------------------------------- +m4_dnl TABLE OF CONTENTS + +m4_define(`_Start_TOC',`<UL><P>m4_divert(-1) + m4_define(`_H1_num',0) + m4_define(`_H2_num',0) + m4_define(`_H3_num',0) + m4_define(`_H4_num',0) + m4_divert(1)') + +m4_define(`_H1', `m4_divert(-1) + m4_define(`_H1_num',m4_incr(_H1_num)) + m4_define(`_H2_num',0) + m4_define(`_H3_num',0) + m4_define(`_H4_num',0) + m4_define(`_TOC_label',`_H1_num. $1') + m4_divert(0)<LI><A HREF="#_TOC_label">_TOC_label</A> + m4_divert(1)<A NAME="_TOC_label"><H2>_TOC_label</H2></A>') + +m4_define(`_H2', `m4_divert(-1) + m4_define(`_H2_num',m4_incr(_H2_num)) + m4_define(`_H3_num',0) + m4_define(`_H4_num',0) + m4_define(`_TOC_label',`_H1_num._H2_num $1') + m4_divert(0)<LI><A HREF="#_TOC_label">_TOC_label</A> + m4_divert(1)<A NAME="_TOC_label"><H2>_TOC_label</H2></A>') + +m4_define(`_H3', `m4_divert(-1) + m4_define(`_H3_num',m4_incr(_H3_num)) + m4_define(`_H4_num',0) + m4_define(`_TOC_label',`_H1_num._H2_num._H3_num $1') + m4_divert(0)<LI><A HREF="#_TOC_label">_TOC_label</A> + m4_divert(1)<A NAME="_TOC_label"><H2>_TOC_label</H2></A>') + +m4_define(`_H4', `m4_divert(-1) + m4_define(`_H4_num',m4_incr(_H4_num)) + m4_define(`_TOC_label',`_H1_num._H2_num._H3_num._H4_num $1') + m4_divert(0)<LI><A HREF="#_TOC_label">_TOC_label</A> + m4_divert(1)<A NAME="_TOC_label"><H2>_TOC_label</H2></A>') + +m4_define(`_End_TOC',`m4_divert(0)</UL><P>') + +m4_dnl ---------------------------------------------- +m4_dnl TABLES + +m4_dnl _Start_Table(Columns,TABLE parameters) +m4_dnl defaults are BORDER=1 CELLPADDING="1" CELLSPACING="1" +m4_dnl WIDTH="n" pixels or "n%" of screen width +m4_define(`_Start_Table',`<TABLE $1>') + +m4_define(`_Table_Hdr_Item', `<th>$1</th>m4_ifelse($#,1,,`_Table_Hdr_Item(m4_shift($@))')') + +m4_define(`_Table_Row_Item', `<td>$1</td>m4_ifelse($#,1,,`_Table_Row_Item(m4_shift($@))')') + +m4_define(`_Table_Hdr',`<tr>_Table_Hdr_Item($@)</tr>') +m4_define(`_Table_Row',`<tr>_Table_Row_Item($@)</tr>') + +m4_define(`_End_Table',</TABLE>) + +m4_dnl -- local adations, we only use the ones below, the ones above are for +m4_dnl -- reference to the original stdlib.m4 + +m4_define(`_LINK_TO_LABEL',` + <a href="#$1">$1</a> +') +m4_define(`_SECTION_HEADER',` + <a name="$2"><$1>$2</$1></a> +') + +m4_define(`_TABLE_START',` +<div class="box"> +<table class="results"> +') + +m4_define(`_Table_Hdr_Item', `<th>$1</th>m4_ifelse($#,1,,`_Table_Hdr_Item(m4_shift($@))')') + +m4_define(`_Table_Row_Item', `<td>$1</td>m4_ifelse($#,1,,`_Table_Row_Item(m4_shift($@))')') + +m4_define(_TABLE_ROW_CNT,0) +m4_define(`_TABLE_HEADER',`<thead><tr>_Table_Hdr_Item($@)</tr></thead>') +m4_define(`_TABLE_ROW',` +<tbody> + m4_define(`_TABLE_ROW_CNT',m4_incr(_TABLE_ROW_CNT)) + m4_ifelse(m4_eval(_TABLE_ROW_CNT % 2),0,`<tr class="even">',`<tr class="odd">') + _Table_Row_Item($@) + </tr> +</tbody> +') + +m4_define(`_TABLE_END',`</table></div>') +<table class="results"> + +m4_divert diff --git a/templates/summary.m4 b/templates/summary.m4 index 23c3b1c..8eb2845 100644 --- a/templates/summary.m4 +++ b/templates/summary.m4 @@ -1,17 +1,31 @@ +m4_include(stdlib.m4) m4_include(header.m4) m4_include(footer.m4) _HEADER(`Archlinux32 Consistency Checker',`anb-stats') -<h2>Statistics</h2> +m4_define(`_STATISTICS',`Statistics') +m4_define(`_DUPLICATES_STATE_REPO',`Duplicate States in State Repo') + +<h1>Table of Contents</h1> +<ul> + <li>_LINK_TO_LABEL(_STATISTICS)</li> + <li>_LINK_TO_LABEL(_DUPLICATES_STATE_REPO)</li> +</ul> + +_SECTION_HEADER(h2,_STATISTICS) Generated on m4_esyscmd(date) -<pre> -m4_esyscmd(cat ../data/stats) -</pre> -<h2>Duplicate States in State Repo</h2> -<pre> -m4_esyscmd(cat ../data/duplicates) -</pre> + +_TABLE_START() +_TABLE_HEADER(what,packages) +m4_esyscmd(`../scripts/tsv2tablerow ../data/stats') +_TABLE_END() + +_SECTION_HEADER(h2,_DUPLICATES_STATE_REPO) +_TABLE_START() +_TABLE_HEADER(repository,package,version,tag,git) +m4_esyscmd(`../scripts/tsv2tablerow ../data/duplicates') +_TABLE_END() _FOOTER() diff --git a/templates/table.m4 b/templates/table.m4 deleted file mode 100644 index 4913ad7..0000000 --- a/templates/table.m4 +++ /dev/null @@ -1,658 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8" /> - <title>Arch Linux 32 - List of Build Slaves</title> - <link rel="stylesheet" type="text/css" href="/static/archweb.css" media="screen, projection" /> - <link rel="icon" type="image/x-icon" href="/static/favicon.ico" /> - <link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico" /> - </head> - <body class=""> - <div id="archnavbar" class="anb-packages"> - <div id="archnavbarlogo"> - <h1><a href="/" title="Return to the main page">Arch Linux</a></h1> - </div> - <div id="archnavbarmenu"> - <ul id="archnavbarlist"> - <li id="anb-home"><a href="https://www.archlinux32.org/">Home</a></li> - <li id="anb-packages"><a href="https://www.archlinux32.org/packages">Packages</a></li> - <li id="anb-forums"><a href="https://bbs.archlinux32.org/">Forums</a></li> - <li id="anb-bugs"><a href="https://bugs.archlinux32.org/" title="Report and track bugs">Bugs</a></li> - <li id="anb-mailing-list"><a href="https://lists.archlinux.org/archives/list/arch-ports@lists.archlinux.org/latest">Mailing List</a></li> - <li id="anb-download"><a href="https://www.archlinux32.org/download/" title="Get Arch Linux">Download</a></li> - <li id="anb-arch-linux-official"><a href="https://www.archlinux.org/">Arch Linux Official</a></li> - </ul> - </div> - </div> - <div id="content"> - <div id="buildslaveslist-results" class="box"> - <table class="results"> - <thead> - <tr> - <th> - <a href="?showall=&sort=name" title="Sort build assignments by name"> - name - </a> - </th> - <th> - <a href="?showall=&sort=operator" title="Sort build assignments by operator"> - operator - </a> - </th> - <th> - <a href="?showall=&sort=currently_building" title="Sort build assignments by pkgbase of currently building package"> - currently building - </a> - </th> - <th> - <a href="?showall=&sort=last_connection" title="Sort build assignments by time of last connection"> - last connection - </a> - </th> - <th> - <a href="?showall=&sort=building_since" title="Sort build assignments by start of build"> - building since - </a> - </th> - <th> - <a href="?showall=&sort=trials" title="Sort build assignments by number of trials"> - trials - </a> - </th> - <th> - <a href="?showall=&sort=logged_lines" title="Sort build assignments by number of logged lines so far"> - logged lines - </a> - </th> - <th> - <a href="?showall=&sort=last_action" title="Sort build assignments by last action"> - last action - </a> - </th> - </tr> - </thead> - <tbody> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=build-tasossah-1">build-tasossah-1</a> - </td> - <td> - KitsuWhooa - </td> - <td> - pentium4/ot-urchin - </td> - <td> - 2024-09-10 19:11:29 - </td> - <td> - 2024-09-10 19:09:18 - </td> - <td> - 2 - </td> - <td> - 601 - </td> - <td> - checking-source - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=euronuc">euronuc</a> - </td> - <td> - abaumann - </td> - <td> - i686/guile2.2 - </td> - <td> - 2024-09-10 19:11:26 - </td> - <td> - 2024-09-09 23:12:01 - </td> - <td> - 3 - </td> - <td> - 12036 - </td> - <td> - building - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=build-tasossah-2">build-tasossah-2</a> - </td> - <td> - KitsuWhooa - </td> - <td> - i686/sniffnet - </td> - <td> - 2024-09-10 19:11:07 - </td> - <td> - 2024-09-10 15:24:15 - </td> - <td> - 5 - </td> - <td> - 6954 - </td> - <td> - building - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=build-tasossah-fx">build-tasossah-fx</a> - </td> - <td> - KitsuWhooa - </td> - <td> - pentium4/vlc - </td> - <td> - 2024-09-10 19:11:01 - </td> - <td> - 2024-09-09 08:13:36 - </td> - <td> - 1 - </td> - <td> - 1479 - </td> - <td> - building - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=euronuc-i486">euronuc-i486</a> - </td> - <td> - abaumann - </td> - <td> - i486/rocm-llvm - </td> - <td> - 2024-09-10 19:11:00 - </td> - <td> - 2024-09-09 21:48:35 - </td> - <td> - 4 - </td> - <td> - 42243 - </td> - <td> - building - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=build-tasossah-3">build-tasossah-3</a> - </td> - <td> - KitsuWhooa - </td> - <td> - i686/ot-urchin - </td> - <td> - 2024-09-10 19:10:47 - </td> - <td> - 2024-09-10 19:01:21 - </td> - <td> - 5 - </td> - <td> - 3056 - </td> - <td> - building - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-6">eurobuild6-6</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:30:12 - </td> - <td> - 2024-09-10 16:27:25 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-4">eurobuild6-4</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:27:58 - </td> - <td> - 2024-09-10 15:45:32 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-1">eurobuild6-1</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:23:10 - </td> - <td> - 2024-09-10 16:55:10 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-5">eurobuild6-5</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:20:00 - </td> - <td> - 2024-09-10 16:42:52 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-8-i486">eurobuild6-8-i486</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:14:43 - </td> - <td> - 2024-09-10 16:51:28 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-7-i486">eurobuild6-7-i486</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:10:43 - </td> - <td> - 2024-09-10 16:54:44 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-3">eurobuild6-3</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:10:31 - </td> - <td> - 2024-09-10 16:41:49 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild6-2">eurobuild6-2</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-10 17:04:09 - </td> - <td> - 2024-09-10 16:36:53 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=build-tasossah-c2d">build-tasossah-c2d</a> - </td> - <td> - KitsuWhooa - </td> - <td> - - </td> - <td> - 2024-09-09 15:20:04 - </td> - <td> - 2024-09-09 15:01:04 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild3-i486">eurobuild3-i486</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-08 11:55:16 - </td> - <td> - 2024-09-08 11:34:55 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=eurobuild3">eurobuild3</a> - </td> - <td> - abaumann - </td> - <td> - - </td> - <td> - 2024-09-08 11:49:22 - </td> - <td> - 2024-09-08 11:34:13 - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=streusel-1">streusel-1</a> - </td> - <td> - deep42thought - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=streusel-2">streusel-2</a> - </td> - <td> - deep42thought - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="even"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=streusel-3">streusel-3</a> - </td> - <td> - deep42thought - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - <tr class="odd"> - <td> - <a href="/buildmaster/log.php?show=ssh&slave=thuringiabuild1">thuringiabuild1</a> - </td> - <td> - deep42thought - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - <td> - - </td> - </tr> - </tbody> - </table> - <div> - <form> - <input type="hidden" name="sort" value="-last_connection"/> - <label style="font-weight: normal" for="showall">Show all:</label><input type="checkbox" name="showall" /> - <input type="submit" value="Filter"> - </form> - </div> - - </div> - <div id="footer"> - <p> - Copyright © 2002-2019 <a href="mailto:jvinet@zeroflux.org" title="Contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org" title="Contact Aaron Griffin">Aaron Griffin</a>. - Copyright © 2018-2024 <a href="mailto:arch@eckner.net" title="Contact Erich Eckner">Erich Eckner</a>. - </p> - <p> - The Arch Linux® name and logo are recognized <a href="https://wiki.archlinux.org/index.php/DeveloperWiki:TrademarkPolicy" title="Arch Linux Trademark Policy">trademarks</a>. Some rights reserved. - </p> - <p> - The registered trademark Linux&tm; is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis. - </p> - </div> - </div> - <script type="application/ld+json"> - { - "@context": "http://schema.org", - "@type": "WebSite", - "url": "/", - "potentialAction": { - "@type": "SearchAction", - "target": "/?q={search_term}", - "query-input": "required name=search_term" - } - } - </script> - </body> -</html> |