-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consistent validation with one script
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@185 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
267a260
commit 784f4bd
Showing
7 changed files
with
29 additions
and
32 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
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 |
---|---|---|
@@ -1,16 +1,12 @@ | ||
ldf2bgf = ../../../shared/tools/ldf2bgf | ||
validator = ../../../download/msv/msv.jar | ||
bgfxsd = ../../../shared/xsd/bgf.xsd | ||
|
||
all: | ||
make clean | ||
make test | ||
|
||
build: | ||
|
||
test: | ||
find ../../.. -name "*.ldf" | xargs -n1 ${ldf2bgf} | ||
ls -1 *.bgf | xargs java -jar ${validator} ${bgfxsd} | ||
find ../../.. -name "*.ldf" | xargs -n1 ../../../shared/tools/ldf2bgf | ||
ls -1 *.bgf | xargs -n1 ../../../shared/tools/checkxml bgf | ||
|
||
clean: | ||
rm -f *.bgf |
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
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 |
---|---|---|
@@ -1,28 +1,22 @@ | ||
input = ../../../shared/xsd/xbgf.xsd | ||
extracted = tests/xbgf.bgf | ||
outputldf = tests/xbgf.ldf | ||
outputpdf = tests/xbgf.pdf | ||
outputhtm = tests/xbgf.html | ||
templfd = tests/ldf.temp | ||
validator = ../../../download/msv/msv.jar | ||
output = tests/xbgf | ||
|
||
build: | ||
|
||
all: extract | ||
sh ../../../shared/tools/ldf2html ${outputldf} ${outputhtm} | ||
sh ../../../shared/tools/ldf2pdf ${outputldf} ${outputpdf} 2> /dev/null | ||
../../../shared/tools/ldf2html ${output}.ldf ${output}.html | ||
../../../shared/tools/ldf2pdf ${output}.ldf ${output}.pdf 2> /dev/null | ||
|
||
extract: | ||
sh ../../../shared/tools/xsd2bgf ${input} ${extracted} | ||
python ldfgen.py ${input} ${extracted} ${outputldf} | ||
xsltproc ../../../shared/xsl/ldf2ldf_tail.xslt ${outputldf} > ${templfd} | ||
xsltproc ../../../shared/xsl/ldf2ldf_lift.xslt ${templfd} > ${outputldf} | ||
@rm -f ${templfd} | ||
../../../shared/tools/xsd2bgf ${input} ${output}.bgf | ||
python ldfgen.py ${input} ${output}.bgf ${output}.1.ldf | ||
xsltproc ../../../shared/xsl/ldf2ldf_tail.xslt ${output}.1.ldf > ${output}.2.ldf | ||
xsltproc ../../../shared/xsl/ldf2ldf_lift.xslt ${output}.2.ldf > ${output}.ldf | ||
|
||
test: extract | ||
sh ../../../shared/tools/showbgf ${extracted} | ||
java -jar ${validator} ../../../shared/xsd/bgf.xsd ${extracted} | ||
java -jar ${validator} ../../../shared/xsd/ldf.xsd ${outputldf} | ||
../../../shared/tools/showbgf ${output}.bgf > ${output}.out | ||
../../../shared/tools/checkxml bgf ${output}.bgf | ||
../../../shared/tools/checkxml ldf ${output}.ldf | ||
|
||
clean: | ||
rm -f tests/* |