#!/bin/sh
#
# generate Java bindings for XML schemas used in JabRef

XJC=/usr/bin/xjc
DEST=src/main/gen

$XJC -d $DEST \
	-p net.sf.jabref.logic.importer.fileformat.medline \
	src/main/resources/xjc/medline/medline.xsd

$XJC -d $DEST \
	-p net.sf.jabref.logic.importer.fileformat.bibtexml \
	src/main/resources/xjc/bibtexml/bibtexml.xsd

$XJC -d $DEST -npa -nv -catalog src/main/resources/xjc/mods/catalog.cat \
	-b src/main/resources/xjc/mods/mods-binding.xjb \
	-p net.sf.jabref.logic.importer.fileformat.mods \
	src/main/resources/xjc/mods/mods-3-6.xsd
