From b10e18c0939d693bc833425110e615d6bba7908a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 14 Sep 2024 15:09:51 +0200 Subject: showing tables in arch style now --- templates/stdlib.m4 | 208 ++++++++++++++++ templates/summary.m4 | 30 ++- templates/table.m4 | 658 --------------------------------------------------- 3 files changed, 230 insertions(+), 666 deletions(-) create mode 100644 templates/stdlib.m4 delete mode 100644 templates/table.m4 (limited to 'templates') 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',$2) + +m4_define(`_EMAILME',_MAILTO(_EMAIL_ADDRESS,$1)) + +m4_define(`_CODEQUOTE',
$1
) + +m4_dnl Logical markup: + +m4_define(`_EM',$1) +m4_define(`_STRONG',$1) +m4_define(`_CITE',$1) +m4_define(`_PRE',
$1
) +m4_define(`_CODE',$1) + +m4_dnl Physical markup: + +m4_define(`_BOLD',$1) +m4_define(`_ITALICS',$1) +m4_define(`_STRIKE',$1) +m4_define(`_SUBSCRIPT',$1) +m4_define(`_SUPERSCRIPT',$1) +m4_define(`_COURIER',$1) +m4_define(`_UNDERLINE',$1) +m4_define(`_SMALL',$1) +m4_define(`_BIG',$1) + +m4_define(`_CENTER',
$1
) + +m4_define(`_LIMAGE', [$1]) + +m4_define(`_RIMAGE', [$1]) + +m4_define(`_IMAGE',

[$1]

) + +m4_define(`_IMAGE2',

+[$1] +[$4] +

) + +m4_define(`_FTP',$2) + +m4_define(`_HEAD1',

$1

) + +m4_define(`_HEAD2',

$1

) + +m4_define(`_LINK', $2) + +m4_define(`_SELFLINK', _LINK($1,$1)) + +m4_define(`_LOCALLINK',$2) + +m4_define(`_LABEL',

$1

) + +m4_define(`_LINK_TO_LABEL', _LOCALLINK($1,$1)) + +m4_define(`_PLUG', + _LINK(http://www.ssc.com/linux/, + _IMAGE(_HOMEPAGE/powered.gif,196,49))
+`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', + + + + $1 + + + +

$1


) + +m4_define(_COUNTER,) + +m4_dnl define(`_COUNTER', $2) + +m4_define(`_CREDITS',`For corrections/additions/suggestions for this page, please send email to: _EMAILME(Bob Hepple)

Copyright `©' 1997 Bob Hepple. All rights reserved.') + +m4_dnl ---------------------------------------------- +m4_dnl TABLE OF CONTENTS + +m4_define(`_Start_TOC',`

') + +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',`') + +m4_define(`_Table_Hdr_Item', `m4_ifelse($#,1,,`_Table_Hdr_Item(m4_shift($@))')') + +m4_define(`_Table_Row_Item', `m4_ifelse($#,1,,`_Table_Row_Item(m4_shift($@))')') + +m4_define(`_Table_Hdr',`_Table_Hdr_Item($@)') +m4_define(`_Table_Row',`_Table_Row_Item($@)') + +m4_define(`_End_Table',
$1$1
) + +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',` + $1 +') +m4_define(`_SECTION_HEADER',` + <$1>$2 +') + +m4_define(`_TABLE_START',` +

+ +') + +m4_define(`_Table_Hdr_Item', `m4_ifelse($#,1,,`_Table_Hdr_Item(m4_shift($@))')') + +m4_define(`_Table_Row_Item', `m4_ifelse($#,1,,`_Table_Row_Item(m4_shift($@))')') + +m4_define(_TABLE_ROW_CNT,0) +m4_define(`_TABLE_HEADER',`_Table_Hdr_Item($@)') +m4_define(`_TABLE_ROW',` + + m4_define(`_TABLE_ROW_CNT',m4_incr(_TABLE_ROW_CNT)) + m4_ifelse(m4_eval(_TABLE_ROW_CNT % 2),0,`',`') + _Table_Row_Item($@) + + +') + +m4_define(`_TABLE_END',`
$1$1
') + + +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') -

Statistics

+m4_define(`_STATISTICS',`Statistics') +m4_define(`_DUPLICATES_STATE_REPO',`Duplicate States in State Repo') + +

Table of Contents

+ + +_SECTION_HEADER(h2,_STATISTICS) Generated on m4_esyscmd(date) -
-m4_esyscmd(cat ../data/stats)
-
-

Duplicate States in State Repo

-
-m4_esyscmd(cat ../data/duplicates)
-
+ +_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 @@ - - - - - Arch Linux 32 - List of Build Slaves - - - - - -
- - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - name - - - - operator - - - - currently building - - - - last connection - - - - building since - - - - trials - - - - logged lines - - - - last action - -
- build-tasossah-1 - - KitsuWhooa - - pentium4/ot-urchin - - 2024-09-10 19:11:29 - - 2024-09-10 19:09:18 - - 2 - - 601 - - checking-source -
- euronuc - - abaumann - - i686/guile2.2 - - 2024-09-10 19:11:26 - - 2024-09-09 23:12:01 - - 3 - - 12036 - - building -
- build-tasossah-2 - - KitsuWhooa - - i686/sniffnet - - 2024-09-10 19:11:07 - - 2024-09-10 15:24:15 - - 5 - - 6954 - - building -
- build-tasossah-fx - - KitsuWhooa - - pentium4/vlc - - 2024-09-10 19:11:01 - - 2024-09-09 08:13:36 - - 1 - - 1479 - - building -
- euronuc-i486 - - abaumann - - i486/rocm-llvm - - 2024-09-10 19:11:00 - - 2024-09-09 21:48:35 - - 4 - - 42243 - - building -
- build-tasossah-3 - - KitsuWhooa - - i686/ot-urchin - - 2024-09-10 19:10:47 - - 2024-09-10 19:01:21 - - 5 - - 3056 - - building -
- eurobuild6-6 - - abaumann - -   - - 2024-09-10 17:30:12 - - 2024-09-10 16:27:25 - -   - -   - -   -
- eurobuild6-4 - - abaumann - -   - - 2024-09-10 17:27:58 - - 2024-09-10 15:45:32 - -   - -   - -   -
- eurobuild6-1 - - abaumann - -   - - 2024-09-10 17:23:10 - - 2024-09-10 16:55:10 - -   - -   - -   -
- eurobuild6-5 - - abaumann - -   - - 2024-09-10 17:20:00 - - 2024-09-10 16:42:52 - -   - -   - -   -
- eurobuild6-8-i486 - - abaumann - -   - - 2024-09-10 17:14:43 - - 2024-09-10 16:51:28 - -   - -   - -   -
- eurobuild6-7-i486 - - abaumann - -   - - 2024-09-10 17:10:43 - - 2024-09-10 16:54:44 - -   - -   - -   -
- eurobuild6-3 - - abaumann - -   - - 2024-09-10 17:10:31 - - 2024-09-10 16:41:49 - -   - -   - -   -
- eurobuild6-2 - - abaumann - -   - - 2024-09-10 17:04:09 - - 2024-09-10 16:36:53 - -   - -   - -   -
- build-tasossah-c2d - - KitsuWhooa - -   - - 2024-09-09 15:20:04 - - 2024-09-09 15:01:04 - -   - -   - -   -
- eurobuild3-i486 - - abaumann - -   - - 2024-09-08 11:55:16 - - 2024-09-08 11:34:55 - -   - -   - -   -
- eurobuild3 - - abaumann - -   - - 2024-09-08 11:49:22 - - 2024-09-08 11:34:13 - -   - -   - -   -
- streusel-1 - - deep42thought - -   - -   - -   - -   - -   - -   -
- streusel-2 - - deep42thought - -   - -   - -   - -   - -   - -   -
- streusel-3 - - deep42thought - -   - -   - -   - -   - -   - -   -
- thuringiabuild1 - - deep42thought - -   - -   - -   - -   - -   - -   -
-
-
- - - -
-
- - - - - - - -- cgit v1.2.3-70-g09d2