Skip to content

Commit

Permalink
tool wrapper for Java Language Specification's HTML to BGF extractor
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@241 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Sep 9, 2008
1 parent 73e40e9 commit 71003ac
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions shared/tools/html2bgf
@@ -0,0 +1,19 @@
#!/bin/sh

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

if [ $# -ne 2 ]; then
echo "This tool extracts a BGF from Java Language Standard"
echo "Usage: $0 <input-hypertext-document> <output-bgf>"
exit 1
elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
exit 1
else
python ${SLPS}/topics/extraction/html2bgf/html2bgf.py $1 $2
fi

0 comments on commit 71003ac

Please sign in to comment.