#!/bin/bash # This script generates the hypertext documentation of a mode from the vo-dml.xml file. # - The modelname.vo-dml.xml file has to be in $xmiDir # - All output files are stored in $xmiDir # # Lauren MICHEL - 04/2017 # # Global resources #rootDir=/home/michel/vodml/testbench xmiDir=$rootDir/models xsltDir=$rootDir/xslt modelDir=$rootDir/models antDir=$rootDir/ant graphvizPath=/usr/bin/dot # # Get model references # if [ $# != 1 ] then echo USAGE buildModelDoc [model prefix] exit 1 fi # # Setup of XMI file access # #lcModel=`echo "${1,,}"` # The model name is always in lowercase lcModel=$1 # # Run the transformation # ant -Dmodels=$modelDir -Dmodel=$modelDir -Dgraphviz.path=$graphvizPath \ -Dvodml.model=$modelDir/$lcModel.vo-dml.xml \ -Dmodelname=$1 -Dxslt=$xsltDir -f $antDir/build.xml vo-dml2html