X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-all-xml;h=c4146fc0194b17b7c82cb3c038f104e068d6d686;hb=e1ef9687ac5b24e223f33050bd4ccde69c7cf227;hp=3d91d23006bbf25ed7373895b1b34884ab184e04;hpb=c5de9e3e53800a63a035b511dad9c577925867a0;p=pspp diff --git a/parse-all-xml b/parse-all-xml index 3d91d23006..c4146fc019 100755 --- a/parse-all-xml +++ b/parse-all-xml @@ -5,18 +5,10 @@ # 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 + | xargs grep -EL '<([a-z]*:)?(model|graph)'` -printf '\nAttributes:\n' -for d in $lightTables; do - ./parse-xml $d attr:type -done | sort | uniq -c | sort -rn - -#printf '\nLabels:\n' -#for d in $lightTables; do -# ./parse-xml $d labels -#done | sort | uniq -c | sort -rn +if test -n "$1"; then + for d in $lightTables; do + ./parse-xml $d $1 + done | sort | uniq -c | sort -rn +fi