X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-all-xml;h=c1282e03ff3bf6476afb81d3824526303762f18c;hb=77b70801d56d19a531c970c57bc585cd69395edb;hp=0dfd8102500184356c46daafdbdc4d2055a1e226;hpb=86b334a2694bd7e55392531ddb6dc0f2eda6a063;p=pspp diff --git a/parse-all-xml b/parse-all-xml index 0dfd810250..c1282e03ff 100755 --- a/parse-all-xml +++ b/parse-all-xml @@ -1,22 +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 -c | sort -rn + | xargs grep -EL '<([a-z]*:)?(model|graph|borderProperties)'` -printf '\nAttributes:\n' -for d in $lightTables; do - ./parse-xml $d text -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