X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=parse-all-xml;h=09ec646bef8f95bb57418be32bfe4742f7e9c8d4;hb=55083a4e71e2027e4ddea318f2128ba9a7636c10;hp=98a4258ddbd50c36bbc47fbca083df5491837844;hpb=0f833bb108ef5a1d78be8ee31b2fe2855f6bd03b;p=pspp diff --git a/parse-all-xml b/parse-all-xml index 98a4258ddb..09ec646bef 100755 --- a/parse-all-xml +++ b/parse-all-xml @@ -1,5 +1,9 @@ #! /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. +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