forked from grammarware/grammarware.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
format
executable file
·13 lines (12 loc) · 836 Bytes
/
format
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
../slps/shared/tools/bgf2bnf $1/$2.bgf $1/$2.bnf
../slps/shared/tools/bgf2dms $1/$2.bgf $1/$2.dms
../slps/shared/tools/bgf2sdf $1/$2.bgf $1/$2.sdf
# if [ `dirname $2` != 'metamodels' ]; then
# ../slps/shared/tools/bgf2rsc $1/$2.bgf $1/$2.rsc
# fi
../slps/topics/investigation/analysis/overview_bgf.py $1/$2.bgf >tmp.xml || exit -1
xsltproc --stringparam date `date +"%b%Y"` --stringparam zoo ../../../../webslps/_dev/$1.expanded.xml --stringparam id $3 --stringparam report ../../../../webslps/tmp.xml ../slps/topics/export/hypertext/bgf2fancy.xslt $1/$2.bgf >$1/$2.html || exit -1
if [ -r ../slps/topics/grammars/$3 ]; then
ls -1 ../slps/topics/grammars/$3/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../slps/shared/tools/xbgf2html ../slps/topics/grammars/$3/_.xbgf $1/$2-_.html `basename $2`.html
fi