#!/bin/bash
## This is the batchfile-variant of generating java-ByteDataAccess from some headers.

## create output dirs:
mkdir -p srcJava_gen
mkdir -p srcJava_gen/org
mkdir -p srcJava_gen/org/vishia
mkdir -p srcJava_gen/org/vishia/byteData
mkdir -p srcJava_gen/org/vishia/byteData/test

##set the environment variable for temporary files
export TMP_ZBNFJAX=tmp

echo convert Mystruct.h
## %1 is headerfile resp. javafile-name,
## %2 is output dir for %1.java,
## %3 is input dir for %1.h,
## %4 is the package declaration.
## In the batch 3 routines are calling: ZBNF, XsltPre and the Saxon-xslt-translator.

##Call conversion using cmdZjax.sh, call the named batch with given argument string
zbnfjax CHeader2JavaByteCoding "Mystruct srcJava_gen/org/vishia/byteData/test/ ./ org.vishia.byteData.test"

#$ZBNFJAX_HOME/batch/CHeader2JavaByteCoding.sh Mystruct srcJava_gen/org/vishia/byteData/test/ ./ org.vishia.byteData.test

