Skip to content

Commit

Permalink
validation scripted
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@173 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Aug 16, 2008
1 parent a85c978 commit 04c3f77
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions shared/tools/checkbgf
@@ -0,0 +1,19 @@
#!/bin/sh

# Get our hands on basedir
LOCAL1=${PWD}
cd `dirname $0`
cd ../..
SLPS=${PWD}
cd ${LOCAL1}

if [ $# -ne 1 ]; then
echo "Usage: checkbgf <bgf-input>"
exit 1
elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
exit 1
else
xmllint --noout --schema ${SLPS}/shared/xsd/bgf.xsd $1
java -jar ${SLPS}/download/msv/msv.jar ${SLPS}/shared/xsd/bgf.xsd $1
fi

0 comments on commit 04c3f77

Please sign in to comment.