Skip to content

Commit

Permalink
fixing and adding tools
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1172 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Feb 29, 2012
1 parent af68fb7 commit 44e7e2d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shared/generators/reroot2top
Expand Up @@ -8,7 +8,7 @@ SLPS=${PWD}
cd ${LOCAL1}

if [ $# -ne 2 ]; then
echo "Usage: reroot2top <BGF-input> <XBGF-input>"
echo "Usage: reroot2top <BGF-input> <XBGF-output>"
exit 1
elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
Expand Down
21 changes: 21 additions & 0 deletions shared/tools/exbgf2xbgf
@@ -0,0 +1,21 @@
#!/bin/sh

LOCAL=${PWD}
cd `dirname $0`
cd ../..
SLPS=${PWD}
cd ${LOCAL}
cd `dirname $2`
WHERE=${PWD}
cd ${LOCAL}

if [ $# -ne 3 ]; then
echo "Processes Extended XBGF and generates normal XBGF."
echo "Usage: exbgf2xbgf <input-exbgf-document> <input-bgf-grammar> <output-xbgf-document>"
elif [ ! -r $1 ]; then
echo "Oops: $1 not found or not readable."
elif [ ! -r $2 ]; then
echo "Oops: $2 not found or not readable."
else
xsltproc --stringparam bgf ${WHERE}/$2 ${SLPS}/shared/xsl/exbgf2xbgf.xslt $1 > $3
fi

0 comments on commit 44e7e2d

Please sign in to comment.