projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Figured out some meanings for category data.
[pspp]
/
parse-all-xml
diff --git
a/parse-all-xml
b/parse-all-xml
index a91f68eab6a4e95ca8f1e85b9d3d0c7146ca9654..c1282e03ff3bf6476afb81d3824526303762f18c 100755
(executable)
--- a/
parse-all-xml
+++ b/
parse-all-xml
@@
-1,22
+1,13
@@
#! /bin/sh
#! /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' \
# 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 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
+if test -n "$1"; then
+ for d in $lightTables; do
+ ./parse-xml $d $1
+ done | sort | uniq -c | sort -rn
+fi