X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-all-xml;h=c7b7f93a532a78a9ce2058f3cd05e1032b93431c;hb=d19037e528f40400799790646e8cfafc027da304;hp=8b1fc366f692275c045a6bd1a943f144ef0876af;hpb=a997c6cf917d592722d9850bbf63437d4ba1487e;p=pspp diff --git a/parse-all-xml b/parse-all-xml index 8b1fc366f6..c7b7f93a53 100755 --- a/parse-all-xml +++ b/parse-all-xml @@ -1,17 +1,13 @@ #! /bin/sh -# Parse the structure members that do not represent models or graphs -# and that are not page setups (which are always the first structure member). +# Parse the structure members that do not represent models or graphs. # 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 | sort +lightTables=`find unzipped* -name '*.xml' | grep -vE 'notes|table|warning|chart|model' \ + | xargs grep -EL '<([a-z]*:)?(model|graph|borderProperties)'` -printf '\nAttributes:\n' -for d in $lightTables; do - ./parse-xml $d attributes -done | sort | uniq | sort +if test -n "$1"; then + for d in $lightTables; do + ./parse-xml $d $1 + done | sort | uniq -c +fi