equal
deleted
inserted
replaced
|
1 build/statistics.rp: text/ssm.en.xml |
|
2 mkdir -p build |
|
3 cat text/ssm.en.xml \ |
|
4 | relpipe-in-xmltable \ |
|
5 --namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \ |
|
6 --relation "chapter" \ |
|
7 --records "//m:chapter" \ |
|
8 --attribute "name" string "m:name" \ |
|
9 --attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \ |
|
10 --attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \ |
|
11 --attribute "informations" integer "count(descendant::m:item[m:type='information'])" \ |
|
12 --attribute "items_total" integer "count(descendant::m:item)" \ |
|
13 > build/statistics.rp |
|
14 |
|
15 # Prints a table with number of items in particular chapters: |
|
16 statistics: build/statistics.rp |
|
17 cat build/statistics.rp | relpipe-out-tabular |
|
18 |
|
19 statistics-chart: build/statistics.rp |
|
20 cat build/statistics.rp | relpipe-tr-cut ".*" "(name|.*s)" | relpipe-out-gui -title "Sane software manifesto – chart of rule types" |