Makefile
branchv_0
changeset 47 7e665331bc32
parent 36 9e5c3383ba50
child 49 1dc027689f93
equal deleted inserted replaced
46:dc35b4c01ade 47:7e665331bc32
    44 
    44 
    45 publish:
    45 publish:
    46 	scp build/* globalcode.info:/var/www/sane-software.globalcode.info/v_0/
    46 	scp build/* globalcode.info:/var/www/sane-software.globalcode.info/v_0/
    47 
    47 
    48 
    48 
    49 # Prints a table with number of items in particular chapters:
    49 build/statistics.rp: text/ssm.en.xml
    50 statistics:
    50 	mkdir -p build
    51 	cat text/ssm.en.xml \
    51 	cat text/ssm.en.xml \
    52 	    | relpipe-in-xmltable \
    52 	    | relpipe-in-xmltable \
    53 		--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
    53 		--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
    54 		--relation "chapter" \
    54 		--relation "chapter" \
    55 		    --records "//m:chapter" \
    55 		    --records "//m:chapter" \
    56 		    --attribute "name" string "m:name" \
    56 		    --attribute "name" string "m:name" \
    57 		    --attribute "item_count" integer "count(descendant::m:item)" \
    57 		    --attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \
    58 	    | relpipe-out-tabular
    58 		    --attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \
    59 # try also relpipe-out-gui to get the chart
    59 		    --attribute "informations" integer "count(descendant::m:item[m:type='information'])" \
       
    60 		    --attribute "items_total" integer "count(descendant::m:item)" \
       
    61 	> build/statistics.rp
       
    62 
       
    63 # Prints a table with number of items in particular chapters:
       
    64 statistics: build/statistics.rp
       
    65 	cat build/statistics.rp | relpipe-out-tabular
       
    66 	
       
    67 statistics-chart: build/statistics.rp
       
    68 	cat build/statistics.rp | relpipe-tr-cut ".*" "(name|.*s)" | relpipe-out-gui -title "Sane Software Manifesto – chart of rule types"