Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some new metrics plus makefile tweaking
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@318 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
91b575d
commit 2bb53d2
Showing
5 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
# Get our hands on basedir | ||
LOCAL1=${PWD} | ||
cd `dirname $0` | ||
cd ../.. | ||
SLPS=${PWD} | ||
cd ${LOCAL1} | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "This tool runs some metrics on a XBGF document" | ||
echo "Usage: xbgflc <BGF-input>" | ||
exit 1 | ||
elif [ ! -r $1 ]; then | ||
echo "Oops: $1 not found or not readable." | ||
exit 1 | ||
else | ||
/bin/echo -n "Total lines: " | ||
wc -l $1 | ||
/bin/echo -n "Total transformations: " | ||
xpath $1 `cat ${SLPS}/topics/presentation/metrics/transformations.xpath` 2> /dev/null | ||
/bin/echo -n "Total issues solved: " | ||
cat $1 | grep -c "<\!--" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
build: | ||
|
||
test: | ||
python xpathpre.py ../../java/jls1/syntax.html >jls1.html | ||
python html2bgf.py jls1.html jls1.bgf | ||
python html2bgf.py ../../java/jls2/syntax.html jls2.bgf | ||
python html2bgf.py ../../java/jls3/syntax.html jls3.bgf | ||
../../../shared/tools/checkxml bgf jls1.bgf | ||
../../../shared/tools/checkxml bgf jls2.bgf | ||
../../../shared/tools/checkxml bgf jls3.bgf | ||
@python getpre.py ../../java/jls1/syntax.kw ../../java/jls1/syntax.html parse.html | ||
@python html2bgf.py parse.html jls1.bgf | grep "problems encountered" | ||
@python getpre.py ../../java/jls1/collect.kw ../../java/jls1/collected.html parse.html | ||
@python html2bgf.py parse.html jls1c.bgf | grep "problems encountered" | ||
@python html2bgf.py ../../java/jls2/syntax.html jls2.bgf | grep "problems encountered" | ||
@python getpre.py ../../java/jls2/collect.kw ../../java/jls2/collected.html parse.html | ||
@python html2bgf.py parse.html jls2c.bgf | grep "problems encountered" | ||
@python html2bgf.py ../../java/jls3/syntax.html jls3.bgf | grep "problems encountered" | ||
@python getpre.py ../../java/jls3/collect.kw ../../java/jls3/collected.html parse.html | ||
@python html2bgf.py parse.html jls3c.bgf | grep "problems encountered" | ||
@../../../shared/tools/checkxml bgf jls1.bgf | ||
@../../../shared/tools/checkxml bgf jls2.bgf | ||
@../../../shared/tools/checkxml bgf jls3.bgf | ||
@../../../shared/tools/checkxml bgf jls1c.bgf | ||
@../../../shared/tools/checkxml bgf jls2c.bgf | ||
@../../../shared/tools/checkxml bgf jls3c.bgf | ||
|
||
clean: | ||
rm -f *.bgf jls1.html | ||
rm -f *.bgf parse.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
8.1.5 | ||
8.3 | ||
8.3.1 | ||
8.4 | ||
8.4/2 | ||
8.4.1/2 | ||
8.4.3 | ||
8.4.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
count(/*[local-name()='sequence']/*) |