X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-all-xml;h=dbd71d596b234473a0bc1acd6efd6fea019aa692;hb=b07cc00facf9d44f590fa9b2ef5b2b6ab9b08911;hp=98a4258ddbd50c36bbc47fbca083df5491837844;hpb=0f833bb108ef5a1d78be8ee31b2fe2855f6bd03b;p=pspp diff --git a/parse-all-xml b/parse-all-xml index 98a4258ddb..dbd71d596b 100755 --- a/parse-all-xml +++ b/parse-all-xml @@ -1,5 +1,22 @@ #! /bin/sh -for d in `ls -1 unzipped/*/*.xml |grep -vE 'notes|table|warning|chart|model'` -do - ./parse-xml $d -done | sort -u + +# Parse the structure members that do not represent models or graphs +# and that are not page setups (which are always the first structure member). +# Also skip those with borderProperties, which indicate the non-"light" +# format. +lightTables=`ls -1 unzipped/*/*.xml |grep -vE 'notes|table|warning|chart|model' \ + | xargs grep -EL '<([a-z]*:)?(model|graph|pageSetup|borderProperties)'` +printf 'Structure:\n' +for d in $lightTables; do + ./parse-xml $d containment +done | sort | uniq -c | sort -rn + +printf '\nAttributes:\n' +for d in $lightTables; do + ./parse-xml $d attr:lockReader +done | sort | uniq -c | sort -rn + +#printf '\nLabels:\n' +#for d in $lightTables; do +# ./parse-xml $d labels +#done | sort | uniq -c | sort -rn