diff options
Diffstat (limited to 'writerfilter/source/ooxml/status.sh')
-rw-r--r--[-rwxr-xr-x] | writerfilter/source/ooxml/status.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/writerfilter/source/ooxml/status.sh b/writerfilter/source/ooxml/status.sh index e06382b13aa1..c36ad0d65a37 100755..100644 --- a/writerfilter/source/ooxml/status.sh +++ b/writerfilter/source/ooxml/status.sh @@ -8,15 +8,13 @@ echo "<stage1>" xsltproc analyzemodel.xsl model.xml | tail -n +2 -mdfind -onlyin $SEARCHIN "case NS_" | -xargs -J % grep -A 1 -n "case NS_" % | -grep "cxx" | +find $SEARCHIN -name "*.cxx" -exec grep -nH -A 1 "case NS_" {} \; | grep -v "//.*case NS_" | sed 's#'$SEARCHIN'##' | sed 's#\(^[^:]*\):\([0-9]*\):#<qname file="\1" line="\2"#' | sed 's#[/* ]*case \(NS_.*\):.*# qname="\1"/>#' | sed 's#.*WRITERFILTERSTATUS: done: \([0-9]*\), planned: \([0-9.]*\), spent: \([0-9.]*\).*#<status done="\1" planned="\2" spent="\3"/>#' | -grep -v "WRITERFILTERSTATUS:" | +sed 's#.*WRITERFILTERSTATUS:.*#<status done="100"/>#' | sed 's#^.*-[0-9][0-9]*-.*$#<nostatus/>#' | grep -v "^--" |