From 71003ac475b6693beb7361173805cc97547c10da Mon Sep 17 00:00:00 2001 From: grammarware Date: Tue, 9 Sep 2008 18:43:07 +0000 Subject: [PATCH] tool wrapper for Java Language Specification's HTML to BGF extractor git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@241 ab42f6e0-554d-0410-b580-99e487e6eeb2 --- shared/tools/html2bgf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 shared/tools/html2bgf diff --git a/shared/tools/html2bgf b/shared/tools/html2bgf new file mode 100755 index 00000000..a7081a22 --- /dev/null +++ b/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 " + 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