X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-all-xml;h=09ec646bef8f95bb57418be32bfe4742f7e9c8d4;hb=044a792171add4cdec5f5ee1e2d4d47059665232;hp=a91f68eab6a4e95ca8f1e85b9d3d0c7146ca9654;hpb=7674958d6669183799289f701e1148b6903b801a;p=pspp diff --git a/parse-all-xml b/parse-all-xml index a91f68eab6..09ec646bef 100755 --- a/parse-all-xml +++ b/parse-all-xml @@ -1,22 +1,9 @@ #! /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). -# 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 attributes -done | sort | uniq -c | sort -rn - -printf '\nLabels:\n' -for d in $lightTables; do - ./parse-xml $d labels -done | sort | uniq -c | sort -rn +# Parse the structure members. +structure_members=`find unzipped* -name 'outputViewer*.xml'` +if test -n "$1"; then + for d in $structure_members; do + ./parse-xml $d "$@" + done | sort | uniq -c +fi