Makefile
branchv_0
changeset 54 9f5de01bfd30
parent 51 21dfb69028a0
child 67 78eca0b3ab5f
equal deleted inserted replaced
53:f62393f88eab 54:9f5de01bfd30
    47 publish:
    47 publish:
    48 	scp build/*     globalcode.info:/var/www/sane-software.globalcode.info/v_0/
    48 	scp build/*     globalcode.info:/var/www/sane-software.globalcode.info/v_0/
    49 	scp license/*   globalcode.info:/var/www/sane-software.globalcode.info/license/
    49 	scp license/*   globalcode.info:/var/www/sane-software.globalcode.info/license/
    50 
    50 
    51 
    51 
       
    52 # Described at: https://relational-pipes.globalcode.info/v_0/examples-in-xmltable-ssm-gui.xhtml
    52 build/statistics.rp: text/ssm.en.xml
    53 build/statistics.rp: text/ssm.en.xml
    53 	mkdir -p build
    54 	mkdir -p build
    54 	cat text/ssm.en.xml \
    55 	cat text/ssm.en.xml \
    55 	    | relpipe-in-xmltable \
    56 		| relpipe-in-xmltable \
    56 		--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
    57 			--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
    57 		--relation "chapter" \
    58 			--relation "chapter" \
    58 		    --records "//m:chapter" \
    59 				--records "//m:chapter" \
    59 		    --attribute "name" string "m:name" \
    60 				--attribute "name" string "m:name" \
    60 		    --attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \
    61 				--attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \
    61 		    --attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \
    62 				--attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \
    62 		    --attribute "informations" integer "count(descendant::m:item[m:type='information'])" \
    63 				--attribute "informations" integer "count(descendant::m:item[m:type='information'])" \
    63 		    --attribute "items_total" integer "count(descendant::m:item)" \
    64 				--attribute "items_total" integer "count(descendant::m:item)" \
    64 	> build/statistics.rp
    65 		> build/statistics.rp
    65 
    66 
    66 # Prints a table with number of items in particular chapters:
    67 # Prints a table with number of items in particular chapters:
    67 statistics: build/statistics.rp
    68 statistics: build/statistics.rp
    68 	cat build/statistics.rp | relpipe-out-tabular
    69 	cat build/statistics.rp | relpipe-out-tabular
    69 	
    70